On Wed, Dec 31, 2008 at 03:23:10PM -0800, Brian Dunning wrote: > Here's a weird thing. I have a new Redhat machine, with PHP 5.2.6 and > IM 6.4.8. The following works beautifully on the command line: > > convert original.pdf new.jpg > > But from PHP, it only works beautifully if I specify complete > pathnames for convert, the original file, and the new file (that's OK, > no problem), but it only works converting JPG and GIF images. As soon > as I try to convert a PDF image, it fails: > > <?php > $command_line = "/usr/local/imagemagick/bin/convert /var/www/html/ > original.pdf /var/www/new.jpg"; > system($command_line, $return_var); > ?>
Add " > /tmp/im.log 2>&1" to the command_line string and see what the log file says. Maybe it's a a PATH issue. It looks like you're using non-standard paths (/usr/local/imagemagick/...). Just a first guess. -- -- Jos Vos <[email protected]> -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364 -- Amsterdam, The Netherlands | Fax: +31 20 6948204 _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
