convert: missing an image

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
hm2k

convert: missing an image

Post by hm2k »

I appear to be having a problem converting a PDF file on my system, please advise further:

Code: Select all

[root@blade ~]# convert -append -fuzz 1% -colorspace rgb -density 300 -quality 100 -resize 100% /home/share/www/...Web180x728pixJAF.pdf /home/share/www/...Web180x728pixJAF.pdf.jpg 2>&1
Error: /syntaxerror in readxref
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1069/1123(ro)(G)--   --dict:0/20(G)--   --dict:93/200(L)--   --dict:93/200(L)--   --dict:97/127(ro)(G)--   --dict:229/230(ro)(G)--   --dict:14/15(L)--
Current allocation mode is local
GNU Ghostscript 7.07: Unrecoverable error, exit code 1
convert: Postscript delegate failed `/home/share/www/...Web180x728pixJAF.pdf':  @ error/pdf.c/ReadPDFImage/648.
convert: missing an image filename `/home/share/www/...Web180x728pixJAF.pdf.jpg' @ error/convert.c/ConvertImageCommand/2970.
I can't work out the actual error or how to diagnose it further.

I'd appreciate it if someone could provide me with further guidance.

Thanks.
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: convert: missing an image

Post by Drarakel »

What version of ImageMagick do you use? You should first try to update Ghostscript (and perhaps ImageMagick).
If the error is still there after that, then it would be best to post a link to that PDF file.
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: convert: missing an image

Post by el_supremo »

The syntax is wrong (unless you're still using IM V5!). You should put most of the options after you've read in the image:

Code: Select all

convert  -density 300  /home/share/www/...Web180x728pixJAF.pdf -quality 100 -resize 100% -append -fuzz 1% -colorspace rgb /home/share/www/...Web180x728pixJAF.pdf.jpg 2>&1
The only one that must be in front of the filename (in this example) is the -density because it tells IM how to read the PDF.
Why do -resize 100% ?
I'm not sure whether the -fuzz does anything either. I don't think the other options use it.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
Post Reply