matthewst Posted August 16, 2007 Share Posted August 16, 2007 Installed ImageMagick and GhostScript with macPorts. Both installs pass the "working" tests listed on there respective sites. When I try a conversion nothing happens. convert.php <?php //$pdf = "/images/image.pdf"; //$pdfimage = pdf_open_image_file($pdf, "jpeg", "test.jpg"); //pdf_place_image($pdf, $pdfimage, 10, 10, 0.6); exec("convert images/image.pdf images/image.jpeg") ?> <html> <head> <title>pdf to jpg converter</title> </head> <?php echo "<img src='images/image.jpg'>"; ?> <body> </body> </html> Am I missing something? Link to comment https://forums.phpfreaks.com/topic/65273-imagemagick-and-ghostscript-work-but-i-still-cant-convert-pdf-to-jpg/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.