Imagick + ghostscript problem in Debian

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
Talik
Posts: 1
Joined: 2011-06-12T08:47:52-07:00
Authentication code: 8675308

Imagick + ghostscript problem in Debian

Post by Talik »

Hello,
I am having a hard time converting PDFs through my web applications on my debian server.
I have imagick and ghostscript both installed through apt-get. (gs first). gs is located in /usr/bin, which is in apache's environment path $_SERVER["PATH"]= /usr/local/bin:/usr/bin:/bin
I am able to use convert from the command line on the same pdf.

Ghostscript version: GPL Ghostscript 8.62 (2008-02-29)
ImageMagick version: ImageMagick 6.3.7 11/17/10 Q16
imagick version: 2.1.1-rc1

The error I am getting is:
Fatal error: Uncaught exception 'ImagickException' with message 'Postscript delegate failed `': No such file or directory' in /mnt/sites/movilix.com/plugins_dev/imageManip/imageManip.php:503 Stack trace: #0 /mnt/sites/movilix.com/plugins_dev/imageManip/imageManip.php(503): Imagick->readimageblob('%PDF-1.4?%?????...') #1 /mnt/sites/movilix.com/plugins_dev/storageEngine/storageEngine.php(22): imageManip->readBlob('%PDF-1.4?%?????...') #2 /mnt/sites/movilix.com/plugins_dev/storageEngine/storageEngine.php(33): storageEngine->loadThumb(54, true) #3 /mnt/sites/movilix.com/pos_dev/test.php(13): storageEngine->displayThumb(54) #4 {main} thrown in /mnt/sites/movilix.com/plugins_dev/imageManip/imageManip.php on line 503

Any help would be appreciated. Thank you.
Post Reply