Glenn Linderman schreef:
On approximately 8/15/2006 1:02 AM, came the following characters from the keyboard of Mike van Hoof:
Mike van Hoof schreef:
Glenn Linderman schreef:
On approximately 8/14/2006 5:48 AM, came the following characters from the keyboard of Mike van Hoof:
Hello,

I am trying to convert a PDF to a jpg image with the following command:
*convert item137796_1.pdf test.jpg*
On the most PDF's this is working, but now I get:
*convert: Postscript delegate failed `item137796_1.pdf'.*

The pdf is a valid pdf which I can open in adobe.

My versions are:

Linux 2.6.5-1.358 #1 Sat May 8 09:04:50 EDT 2004 i686 i686 i386 GNU/Linux (Fedora Core 4) Version: ImageMagick 6.2.0 03/17/05 Q16 http://www.imagemagick.org (installed by yum) ghostscript 7.07-25 (thought it maybe had to do something with this...)

So does anyone knows how I can solve this?
Install GhostScript, then reinstall ImageMagick.

I did this, now i do not get an error anymore, bet the jpg that is created contains errors and cannot be displayed

Mike

Well... i just installed the latest GhostScript GPL version 8.45 and i stopped giving me errors now...
but the created jpg cannot be viewed...

any idea's
Some... but not as certain of a cure as last time :(

Try several jpg viewers... if they all cannot display the created jpgs, it would seem more like a creation problem than a display problem... or even a problem with display. I assume your first tried jpg viewer was the ImageMagick display utility.

Perform a conversion on a typical or similar .pdf file that you are willing to make public. Put both the .pdf, and the .jpg on a web site and post links to them in this list. The developers seem to be pretty responsive about corruption, or incompatibilities of their file formats.

Hey,

I tracked down the problem to be a ghostscript problem... when i run the convert command as root it works fine... but as apache (or any other user) it gives me this error:

command: gs -q -dBATCH -dSAFER -dNOPAUSE -sOutputFile="item137796_1.pdf.jpg" -sDEVICE=jpeg -f"item137796_1.pdf"

Error: /undefinedfilename in (item137796_1.pdf)
Operand stack:

Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push
Dictionary stack:
 --dict:1120/1686(ro)(G)--   --dict:0/20(G)--   --dict:70/200(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.54: Unrecoverable error, exit code 1

And as i said before... as the root user the command works fine...

Also posted this on the gs mailinglist, but not very responsive over there

Mike

--
Medusa, Media Usage Advice B.V.
Science Park Eindhoven 5216
5692 EG SON
tel: 040-24 57 024  fax: 040-29 63 567
url: www.medusa.nl
mail: [EMAIL PROTECTED]

Uw bedrijf voor Multimedia op Maat


_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to