By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,404 Members | 1,945 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,404 IT Pros & Developers. It's quick & easy.

ImageMagick and PHP

P: 1
Hi

I'm trying to convert a pdf file to jpg using ImageMagick.

If I run the code in a command prompth it works.

Command code:
convert a.pdf a.jpg

PHP code
echo exec('"C:\\Program Files\\ImageMagick-6.3.7-Q16\\convert.exe" C:\\a.pdf C:\\a.jpg');

The problem is only when I try to convert FROM PDF to another fileformat. If I try to convert TO PDF og from another fileformat it works in PHP also...

Do you have any ideas??
Jan 8 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.