Page 2 of 2

Re: convert hangs on converting pdf to jpg

Posted: 2015-04-22T16:50:10-07:00
by rossigee
This still appears to be an issue. I have several rogue PDF files that cause convert to hang, but not if I manually run the 'gs' that is spawned without the following argument...

-dGraphicsAlphaBits=4

Can anyone point me to the bugtracker issue that claims this is resolved, so I can follow it or add further details/examples to it?

The weird thing about this is that it works fine on my laptop, but not on our production server (an Amazon EC2 instance), which eventually queues up tons of 'gs' processes until I log on and manually kill them off. Both are running fully updated versions of Ubuntu 14.04, same architecture.

ii ghostscript 9.10~dfsg-0ubuntu10.2 amd64 interpreter for the PostScript language and for PDF
ii imagemagick 8:6.7.7.10-6ubuntu3 amd64 image manipulation programs

Re: convert hangs on converting pdf to jpg

Posted: 2015-04-22T17:26:01-07:00
by fmw42
try GS 9.15 or 9.16. This issue sounds familiar or similar to one that was solved by upgrading GS. Also 6.7.7.10 is over 200 versions old, so you might want to upgrade IM as well.

see viewtopic.php?f=3&t=27419

Re: convert hangs on converting pdf to jpg

Posted: 2017-04-28T13:08:20-07:00
by vfranchi
I'm having the exactly same problem. If I run gs command directly on shell without the -dGraphicsAlphaBits=4 parameter, it works fine. It is also working with -dGraphicsAlphaBits=1.

-dGraphicsAlphaBits=2 and -dGraphicsAlphaBits=4 hangs Ghostscript.

I am using Ghostscript 9.21 and Imagemagick 6.7.7-10.

Re: convert hangs on converting pdf to jpg

Posted: 2017-04-28T14:23:45-07:00
by fmw42
ImageMagick 6.7.7.10 is ancient (over 200 versions old). You might try upgrading. Or just modify the delegates.xml file for PS to include the Ghostscript options you use when running Ghostscript manually.

You could post one of your PDF file that you are having difficulty with to some free hosting service and put the URL here and we can test with a more current version of IM and Ghostscript.