ps2write Problem with indexed CMYK Colorspace images

Bug #902145 reported by Till Kamppeter
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GS-GPL
Fix Released
Medium
ghostscript (Ubuntu)
Fix Released
Medium
Unassigned
Oneiric
Fix Released
Medium
Unassigned

Bug Description

I have a problem with converting a PDF file created with Adobe InDesign CS5 to PostScript using pdf2ps. At least one of the imagedata values of an indexed CMYK image is assigned to a wrong color value of the color look up table.

In order to generate a simple test file for this bug I have converted the PDF to a PostScript file, using XPDF (XPDF has no problems with this kind of images). Then I have stripped down the resulting PS file to the image which produces the
error. I have attached this file to this bug report.

You can reproduce the error with this test file using ps2ps2 and the current Ghostscript 9.04. It seems that a value near 0 (->white) is assigned to the greatest (darkest) value of the color table. If I use Ghostcript 8.71 with the ps2write device the image is converted correctly.

To reproduce:

ps2ps2 gs-bug692612.ps gs-bug692612-new.ps
gs gs-bug692612.ps
gs gs-bug692612-new.ps

The original PostScript file shows correctly with a smooth transition bwtween thw gray area and the white background. The file generated by ps2ps2 shows a black line at the white end of the transition.

This problem is fixed in Ghostscript upstream: http://bugs.ghostscript.com/show_bug.cgi?id=692612

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ghostscript - 9.04~dfsg-2ubuntu6

---------------
ghostscript (9.04~dfsg-2ubuntu6) precise; urgency=low

  * debian/patches/020111209-5359a2d-do-not-use-hexadecimal-names-for-type42-charstrings-and-encoding.patch:
    Do not use hexadecimal names for type42 Charstrings and Encoding. This fixes
    substitution of certain characters by others when converting PDF to
    PostScript with the "ps2write" output device (LP: #898532, upstream bug
    #692711)
  * debian/patches/020111125-979f218-ps2write-fix-conversion-of-escaped-string-to-hex-string.patch:
    ps2write: Fix conversion of escaped string to Hex string (LP: #902145,
    upstream bug #692612).
 -- Till Kamppeter <email address hidden> Fri, 9 Dec 2011 13:45:59 +0100

Changed in ghostscript (Ubuntu):
status: Triaged → Fix Released
Changed in gs-gpl:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Corrected Oneiric package of Ghostscript to fix this bug and bug 898532 uploaded to -proposed. As soon as the upload gets approved a separate comment will get posted here with instructions for testing the new package. Please test it and report back here, so that we can make it an official update for Oneiric.

Changed in ghostscript (Ubuntu Oneiric):
status: New → Fix Committed
importance: Undecided → Medium
milestone: none → oneiric-updates
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Till, or anyone else affected,

Accepted ghostscript into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Lars Karlitski (larsu)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Lars, thank you very much for testing.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ghostscript - 9.04~dfsg-0ubuntu11.4

---------------
ghostscript (9.04~dfsg-0ubuntu11.4) oneiric-proposed; urgency=low

  * debian/patches/020111209-5359a2d-do-not-use-hexadecimal-names-for-type42-charstrings-and-encoding.patch:
    Do not use hexadecimal names for type42 Charstrings and Encoding. This fixes
    substitution of certain characters by others when converting PDF to
    PostScript with the "ps2write" output device (LP: #898532, upstream bug
    #692711)
  * debian/patches/020111125-979f218-ps2write-fix-conversion-of-escaped-string-to-hex-string.patch:
    ps2write: Fix conversion of escaped string to Hex string (LP: #902145,
    upstream bug #692612).
 -- Till Kamppeter <email address hidden> Fri, 9 Dec 2011 13:45:59 +0100

Changed in ghostscript (Ubuntu Oneiric):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.