 |
 |
ImageMagick and PHP
|
 |
|
 |
|
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
|
|
|
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
|
|
Originally Posted by madmacgames
Thanks. I was just reading that very page when your message came in. :-)
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |