RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1268259 - Ghostscript (via ImageMagick convert) takes extremely long to convert PDF to PNG
Summary: Ghostscript (via ImageMagick convert) takes extremely long to convert PDF to PNG
Keywords:
Status: CLOSED DUPLICATE of bug 1302121
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ghostscript
Version: 7.3
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: David Kaspar // Dee'Kej
QA Contact: QE Internationalization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1289025 1305230
TreeView+ depends on / blocked
 
Reported: 2015-10-02 10:54 UTC by Peter Bex
Modified: 2016-06-22 13:24 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-22 13:24:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter Bex 2015-10-02 10:54:57 UTC
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):

ghostscript.x86-64-9.07-18.el7

How reproducible:


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.

Actual results:

Ghostscript takes ages to convert image.

Expected results:

Ghostscript takes mere seconds to convert image.

Additional info:

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.

Comment 2 josef radinger 2016-02-18 07:41:59 UTC
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.

Comment 3 David Kaspar // Dee'Kej 2016-06-22 13:24:22 UTC
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 ***


Note You need to log in before you can comment on or make changes to this bug.