Red Hat Bugzilla – Bug 1268259
Ghostscript (via ImageMagick convert) takes extremely long to convert PDF to PNG
Last modified: 2016-06-22 09:24:22 EDT
Description of problem:
When using ImageMagick or GraphicsMagick's "convert" program to convert a PDF to PNG, ghostscript is invoked and takes several hours to convert an image. On newer versions of ghostscript this takes only a few seconds.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. With ImageMagick: "convert foo.pdf foo.png", with GraphicsMagic: "gm convert foo.pdf foo.png".
2. Look in "top" or "ps" for a "gs" process eating up CPU.
Ghostscript takes ages to convert image.
Ghostscript takes mere seconds to convert image.
The command line of the ghostscript interpreter spawned by ImageMagick includes the flag "-dTextAlphaBits=4". When invoking ghostscript manually and changing only that flag to "-dTextAlphaBits=1", it completes pretty quickly.
I've found that updating Ghostscript to a newer version fixes the problem as well. I've built and installed the ghostscript-9.10-4.fc20.src.rpm SRPM from Fedora 20.
If you can't reproduce the issue, I can provide a PDF that triggers the problem.
any progress here?
we are affected as well. the same issue. conversion never ends (we killed the processes after several hours). upgrading did the trick, but we need a supported version.
Hello, I have previously started to solve this issue in the BZ #1302121. I will close this BZ as a duplicate. You can track all the progress there.
Thank you for your understanding.
*** This bug has been marked as a duplicate of bug 1302121 ***