Imaging Libraries

ID #138

Can I use ImageMagick?

Applies to: Grid System

ImageMagick is available and you'll find all the executable programs in:

/usr/bin/


ImageMagick is regularly updated to the current version.


Last update: 2010-09-29 17:20
Author: FAQ Admin
Revision: 1.3

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 (0 Votes)

completely useless 1 2 3 4 5 most valuable

You can comment this FAQ

Comment of Anonymous:
You can see the ImageMagick version by telneting or ssh'ing into the server and typing this at the shell prompt:

/usr/X11R6/bin/convert | head -n 1

You should see output like:

Version: @(#)ImageMagick 5.4.5 05/01/02 Q:16 http://www.imagemagick.org
Added at: 2002-04-13 15:27

Comment of Anonymous:
If you call these things like:

exec("/usr/X11R6/bin/mogrify file1 file2", $result);

Then you can check $result to see what happened like this:

while(list($k, $v) = each($result)) {
echo "$k: $v \n";
}
Added at: 2002-06-04 17:32

Comment of Anonymous:
To use ImageMagick go to http://www.cit.gu.edu.au/~anthony/graphics/imagick6/ and go through the examples there. First become familiar with executing commands through the shell prompt.

convert htdocs/www/test/1.jpg -thumbnail 90x90 /htdocs/www/test/1_tn.jpg
(converts 1.jpg into a thumbnail named 1_tn.jpg confined to 90x90)

To call any ImageMagick command in your PHP scripts:

exec("/usr/bin/convert /htdocs/www/test/2.jpg -thumbnail 90x90 /htdocs/www/test/1_tn.jpg", $result);
Added at: 2006-05-23 16:25