Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > ImageMagick and PHP

ImageMagick and PHP
Thread Tools
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Jun 24, 2005, 09:57 AM
 
On one of my websites, I'd like to add the ability to resize images on the fly based on the resolution of the screen being used to view them. As a bonus, I'd love to be able to compose the annotations for each image in the font of my choosing (this lets me control the typography of *small* bits of text in ways not usually possible on the web). I'm thinking of doing this via ImageMagick, called by PHP (possibly through the aid of Magickwand for PHP).

My question is whether this is worth the effort. It seems installing these things is quite difficult.
Does anybody have a PHP script that will check for the presence of a working installation of Imagemagick, perchance?
(Last edited by selowitch; Jun 24, 2005 at 10:49 AM. )
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jun 24, 2005, 10:29 AM
 
I haven't tried using PHP with ImageMagick before, but have you considered using the gd library extension? I'm not sure it's as powerful, but I think it may be able to do what you want without as much hassle. That said, I see another possible problem: how will you get PHP to access the user's screen resolution?
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Jun 24, 2005, 10:47 AM
 
Originally Posted by Millennium
I haven't tried using PHP with ImageMagick before, but have you considered using the gd library extension? I'm not sure it's as powerful, but I think it may be able to do what you want without as much hassle.
Do you have a link?
Originally Posted by Millennium
how will you get PHP to access the user's screen resolution?
I can't. I'll be using JavaScript for that, the pass the data to PHP for processing, then back to a JavaScript window.resize function, I imagine.
     
Grizzled Veteran
Join Date: Oct 2003
Status: Offline
Reply With Quote
Jun 24, 2005, 01:46 PM
 
The only thing necessary for evil to flourish is for good men to do nothing
- Edmund Burke
     
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Jun 24, 2005, 01:53 PM
 
Originally Posted by madmacgames
Thanks. I was just reading that very page when your message came in. :-)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:18 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2