I am looking to get ImageMagick working with gs and imagick. I am trying to execute the line of code (which fetches the 1st line of a multi page/layer pdf to display it). This code shouldn't be the source of the error, it's a server side issue.
$img = new Imagick($pdf_file."[0]");
On the webpage in source, I get this error:
exception 'ImagickException' with message 'Postscript delegate failed...
I have done quite a bit of Googling / attempts to fix this. I have:
- Reinstalled gs and ImageMagick (currently imagick is giving me a bizarre make error due to the fact that I am using the RC rather than the stable)
- Added the extension to php.ini (imagick.so)
- Re-configured the ImageMagick installation to include --with-gslib (gs is added to the list)
- Dynamically linked /usr/bin's (for gs)
- A few other things (yes, they are all available and installed).
The convert command DOES work, I have tested and confirmed it's usage with the following line which runs fine with no errors. The resulting PDF displays perfectly.
convert test.pdf test2.pdf
I've exhausted nearly everything I can think of, and most of what Google and other sites have to offer. Does anyone have any advice on the best way to approach this? I'm glad to produce logs and such, just not sure exactly what would help with this error.