Page 1 of 1

imagemagick under xampp 1.7.4

Posted: 2011-09-07T09:33:10-07:00
by honkytonky
hi there,

can anybody tell me how to install imagemagick under xampp for windows?

thanks

Re: imagemagick under xampp 1.7.4

Posted: 2011-09-07T11:22:41-07:00
by Bonzo
Was quite straight forward when I did it.
Download and install XAMPP

Download and install ImageMagick - http://www.imagemagick.org/script/binar ... hp#windows
( may need to restart PC ):
1.Start XAMPP
2.Run this code in your browser to prove it is installed and working.
<?php
header("Content-Type: text/plain");
system("convert -version");
?>
3.Use the code like this and run it in your browser:
<?php
exec("convert input.jpg -thumbnail 100x100 output.jpg");
?>

Note: You will need to use " not ' when using draw or annotate as this is a windows installation. The " will need escaping if you are writing the code like exec("convert ......
localhost must be running for the code to work.