Page 1 of 1
Re: convert pdf to jpg - with Terminal OK with PHP no...
Posted: 2009-04-20T09:48:18-07:00
by G4XTR
$command = "convert /opt/local/bin/doc.jpg /opt/local/bin/img.pdf";
$output = shell_exec($command);
echo "<br>Shell Output:";
echo($output);
What does the shell respond?
Btw, your first jpg is called img, the other test. Also look at the file link, are both images in the same folder?
Re: convert pdf to jpg - with Terminal OK with PHP no...
Posted: 2009-04-20T10:46:57-07:00
by fmw42
did you recompile IM after installing Ghostscript?
check if IM recognizes Ghostscript
convert -list configure
See line starting with DELEGATES. It should include gs
Do you have more than one Ghostscript installed?
Check your install logs to see if there were any errors in compiling Ghostscript or if IM thinks it was fully installed.