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.
jgonera
Posts: 6 Joined: 2011-08-03T07:20:29-07:00
Authentication code: 8675308
Post
by jgonera » 2011-08-03T07:45:48-07:00
System:
ImageMagick 6.5.7-8 2010-12-02 Q16
http://www.imagemagick.org
GPL Ghostscript 8.71 (2010-02-10)
Ubuntu lucid 10.04.3 LTS
File:
http://dl.dropbox.com/u/7581847/nzz.pdf
Trace
Code: Select all
"gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pam" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r200x200" -dUseCIEColor "-sOutputFile=/tmp/magick-XXivRtmy" "-f/tmp/magick-XXpXYhRb" "-f/tmp/magick-XXmm0xnP"
omega:/tmp/t1$ convert -limit memory 512 -density 200 nzz.pdf page_%02d.jpg
Error: /ioerror in --showpage--
Operand stack:
1 true
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1878 1 3 %oparray_pop 1877 1 3 %oparray_pop 1861 1 3 %oparray_pop --nostringval-- --nostringval-- 66 1 88 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- 1761 0 9 %oparray_pop --nostringval-- --nostringval--
Dictionary stack:
--dict:1162/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:108/127(ro)(G)-- --dict:288/300(ro)(G)-- --dict:22/25(L)-- --dict:6/8(L)-- --dict:21/40(L)--
Current allocation mode is local
Last OS error: 27
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
convert: Postscript delegate failed `nzz.pdf': No such file or directory @ pdf.c/ReadPDFImage/634.
convert: missing an image filename `page_%02d.jpg' @ convert.c/ConvertImageCommand/2838.
With ImageMagick 6.7.1-0 2011-08-03 Q16 and Ghostscript 9.02 (2011-03-30) (all compiled with default ./configure) i get only a 'Segmentation Fault'
Is anyone able to reproduce?
Delian
Posts: 1 Joined: 2011-08-19T01:51:50-07:00
Authentication code: 8675308
Post
by Delian » 2011-08-19T02:00:36-07:00
I'm able to reproduce it.
ImageMagick 6.6.5-6 2010-12-10 Q16
http://www.imagemagick.org
GPL Ghostscript 8.71 (2010-02-10)
Gentoo
I've got the same output.
Removing the density argument ( IIRC the default density is 72 ) it works.. so, I suppose it's a free tmp space problem.
jgonera
Posts: 6 Joined: 2011-08-03T07:20:29-07:00
Authentication code: 8675308
Post
by jgonera » 2011-08-20T10:04:59-07:00
I "solved" the issue by giving up on imagemagick (it's just buggy in this case, no discussion) and using directly ghostscript. Works reliably, is faster, and doesn't use that much memory at all!
Sample ghostscript invocation for pdf -> jpeg conversion follows.
Code: Select all
ghostscript -q -dBATCH -dNOPAUSE -sDEVICE=jpeg -r200x200 -sOutputFile=page_%02d.jpg file.pdf
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2011-08-20T10:59:09-07:00
Your PDF converts fine for us with ImageMagick 6.7.1-8 and Ghostscript 9.02 (no segmentation fault). We recommend using Ghostscript directly if all you want is a direct conversion without any additional image processing operations. See Using Ghostscript Directly @
http://www.imagemagick.org/Usage/text/#ghostscript .