Calling 'convert' from php script

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
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Post by dognose »

There are a couple of configurations in PHP that stop exec from running.

Permissions to write in the directly is very common. make a directly called ouput
chmod it to 777 and see if you can get your script to output into that.

Try other commands, like 'touch test.gif' to make sure you can write files.

You should print out phpinfo(); to see your settings.

safe_mode is the most common one. make sure that is OFF if you want to run stuff.
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Post by dognose »

Well, if it works from the command line, it should be good.

look in the http error log for error messages.
Post Reply