Page 1 of 1

Segmentation fault, +compress option not working

Posted: 2010-03-19T07:08:27-07:00
by ethnopunk
Is there something I'm not doing right?

Code: Select all

convert *.jpeg mweb.pdf
Segmentation fault

afrodeity@afrodeity-desktop:~/Desktop/mweb$ convert *.jpeg mweb.pdf +compress
   **** Error: Cannot find a %%EOF marker anywhere in the file.
   **** Warning:  An error occurred while reading an XREF table.
   **** The file has been damaged.  This may have been caused
   **** by a problem while converting or transfering the file.
   **** Ghostscript will attempt to recover the data.
Error: /undefined in --run--
Operand stack:
   1   0   1   --dict:5/5(ro)(G)--   (obj)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1862   1   3   %oparray_pop   1861   1   3   %oparray_pop   1845   1   3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   --nostringval--   %loop_continue   --nostringval--
Dictionary stack:
   --dict:1158/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--   --dict:75/200(L)--   --dict:106/127(ro)(G)--   --dict:285/300(ro)(G)--   --dict:20/25(L)--
Current allocation mode is local
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
convert: Postscript delegate failed `mweb.pdf': No such file or directory @ pdf.c/ReadPDFImage/612.
afrodeity@afrodeity-desktop:~/Desktop/mweb$ convert *.jpeg mweb.pdf +compress
   **** Error: Cannot find a %%EOF marker anywhere in the file.
   **** Warning:  An error occurred while reading an XREF table.
   **** The file has been damaged.  This may have been caused
   **** by a problem while converting or transfering the file.
   **** Ghostscript will attempt to recover the data.
Error: /undefined in --run--
Operand stack:
   1   0   1   --dict:5/5(ro)(G)--   (obj)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1862   1   3   %oparray_pop   1861   1   3   %oparray_pop   1845   1   3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   --nostringval--   %loop_continue   --nostringval--
Dictionary stack:
   --dict:1158/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--   --dict:75/200(L)--   --dict:106/127(ro)(G)--   --dict:285/300(ro)(G)--   --dict:20/25(L)--
Current allocation mode is local
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
convert: Postscript delegate failed `mweb.pdf': No such file or directory @ pdf.c/ReadPDFImage/612.

Re: Segmentation fault, +compress option not working

Posted: 2010-03-19T07:27:11-07:00
by magick
We tried your command and it worked without complaint for us. Does your version of ImageMagick include JPEG support? Type
  • convert -list format
and make sure JPEG is mentioned with a mode of rw-.

Try converting one JPEG image:
  • convert logo: logo.jpg
    convert logo.jpg logo.pdf
Does that work?

What version of ImageMagick are you using?