Page 1 of 1

convert: missing an image

Posted: 2010-09-17T07:25:48-07:00
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.

Re: convert: missing an image

Posted: 2010-09-17T08:03:57-07:00
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.

Re: convert: missing an image

Posted: 2010-09-17T08:09:12-07:00
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