Hi,
I've been trying to execute an ImageMagick convert command through php but it keeps just doing half the image and leaving the bottom half grey. However, if I su to nobody and run exactly the same command from the prompt it works fine. The command is
/usr/X11R6/bin/convert -size 180x180! -quality 95 /home/bubble/tmp/tmpfile.jpg -resize 180x180! /home/bubble/images/stopover/ECTL012_10073big.jpg
This morning I found a little more information. If I su to nobody, then run /usr/bin/php -q test1.php which is the file in question it gives me a
convert: Corrupt JPEG data: premature end of data segment (/home/httpd/maintenance/elec/tmp/tmpfile.jpg).
error. I have no idea why this is not being shown when I view this remotely through the browser, but hey. I've had a look but can't seem to find anything (not really a php question this) but does anyone know of a way to make ImageMagick ignore non-fatal errors like this and just carry on to the next data segment?
Thanks in advance
Bubble