Code: Select all
convert -resize 71x100! "c:/webserver/images/users/avo/artworks/1.png" "c:/webserver/images/users/avo/thumbnails/1.png"
However, if I try to run it with php's exec, even going as far as to literally entering the above, trying each combination of escaping things out etc, no thumbnail is generated, and apache's error log gives me the following line:
Code: Select all
Invalid Parameter - 71x100!
Code: Select all
$query= "convert -resize {$width}x{$height}! \"{$source}\" \"{$destination}\"";
echo $query;
exec($query);