Jump to content

Archived

This topic is now archived and is closed to further replies.

pentan

ImageMagick not working

Recommended Posts

Hey guys,

I know ImageMagick is installed.  When I use this command in my PHP script:

[code]
exec("convert",$out);
echo "<pre>"; print_r($out); echo "</pre>";
[/code]

I get the info on convert.  But when I use this command nothing happens:

[code]
exec ("convert -geometry 20%x20% 'MA5.jpg' ./thumbs/'MA5.jpg'");
[/code]

What am I doing wrong?  The exact same command, cut and pasted in my telnet window in the same directory as the php script works exactly right. 

Thanks,
Michael

Share this post


Link to post
Share on other sites
Never mind.  I was half asleep last night when I set it up and I forgot to set the new folder, thumbs, permisions so that the web could write to it. 

Michael

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.