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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.