convert works at prompt but not via PHP - no errors.

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
geoidesic
Posts: 4
Joined: 2012-11-30T06:06:22-07:00
Authentication code: 6789

convert works at prompt but not via PHP - no errors.

Post by geoidesic »

Hi,

I'm trying to troubleshoot an ImageMagick PHP implementation. This is code that used to work on a different computer but it's not working on the new computer.

Code: Select all

/usr/local/Cellar/imagemagick/6.8.0-10/bin/convert /assets/original/1.jpg -geometry 1000x1000\> -colorspace sRGB -background white -flatten  -define pdf:use-cropbox=true /assets/thumbnail/1.jpg
If I run that on the command line, it works. Via exec() in PHP and it executes with no errors and no output but the image does not get written. I've checked file permissions and they are all correct.

Any clues?
geoidesic
Posts: 4
Joined: 2012-11-30T06:06:22-07:00
Authentication code: 6789

Re: convert works at prompt but not via PHP - no errors.

Post by geoidesic »

Ok, never ye minde... it was permissions on a parent folder that was causing the problem.
Post Reply