do following
create an php script(eg. im_test.php) with following content
<?php
error_reporting(E_ALL);
@ini_set("display_errors", 1);
echo "<b>ImageMagick</b> path <b>/usr/local/bin/convert</b>";
echo "<br /><br />";
echo "<b>Original Picture</b>";
echo "<br />";
echo "<img src=\"./image.jpg\"";
system("/usr/local/bin/convert -resize '640x480' /CHANGETOYOURFULL_PATH/image.jpg /CHANGETOYOURFULL_PATH/image_im640x480.jpg");
echo "<br /><br />";
echo "<b>Resized to 640x480</b>";
echo "<br />";
echo "<img src=\"./image_im640x480.jpg\"";
system("/usr/local/bin/convert -resize '250x250' /CHANGETOYOURFULL_PATH/image.jpg /CHANGETOYOURFULL_PATH/image_im250x250.jpg");
echo "<br /><br />";
echo "<b>Resized to 250x250</b>";
echo "<br />";
echo "<img src=\"./image_im250x250.jpg\"";
system("/usr/local/bin/convert -resize '120x120' /CHANGETOYOURFULL_PATH/image.jpg /CHANGETOYOURFULL_PATH/image_im120x120.jpg");
echo "<br /><br />";
echo "<b>Resized to 120x120</b>";
echo "<br />";
echo "<img src=\"./image_im120x120.jpg\"";
?>
change
/CHANGETOYOURFULL_PATH/ to your exact path to this folder (example path:
/home/myuserid/htdocs/imtest/)
upload im_test.php into example:
http://yoursite/imtestupload an JPG picture renamed as
image.jpg to the same folder where you uploaded
im_test.php.
run
http://yoursite/imtest/im_test.php in your browser
working?
no?
try to change ALL
/usr/local/bin/convert to
/usr/bin/convertworks?
no?
lets see.
@
badduke:
/usr/local/bin/convert is okay on *NIX systems
*.exe is something for Windoof