PHP and ImageMagick problem
Posted by: OrangeSkidoo
Posted on: 2008-02-01 12:37:00
If I run this command directly from the shell, it converts my image fine:
/usr/bin/convert Bass.07.CSI.jpg -profile USWebCoatedSWOP.icc -profile sRGB.icm -sampling-factor 1 Bass.07.CSI.jpg.converted.jpg
If I run it from php with the exec() function, the output image has 0 file size. If I use the second argument to get the shell output, the returned array is empty.
However, if I try the same thing with some other images, the conversion works from both the shell and through php. I suppose it could be something strange about the image -- except that the same convert command works in the shell.
Anyone know what the problem could be?