I'm a totally new user of ImageMagick.
So please be patient with my lack of knowledge!
I am trying to eventually get a Fred's ImageMagick Script to process a big batch of images using PHP under XAMPP in a Windows environment.
I have managed to get ImageMagic to perform this commands successfully:
Code: Select all
<?php
header("Content-Type: text/plain");
system("convert -version");
?>
Code: Select all
<?php
exec("convert inimg/IMG_2247.JPG -thumbnail 100x100 outimg/IMG_2247.png");
?>
I have downloaded the aspectpad script and placed it in htdocs folder.
http://www.fmwconcepts.com/imagemagick/ ... /index.php
When I try to perform the following commands
Code: Select all
<?php
$result = exec("aspectpad -a 1 -m l inimg/IMG_2248.JPG outimg/IMG_2248.png 2>&1");
echo $result;
?>
aspectpad is not an internal or external command
I'm stuck! Please help me!