[gs-bugs] [Bug 691109] -sDEVICE=pdfwrite -dConvertCMYKImagesToRGB=true

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Mon Sep 27 09:38:15 UTC 2010


http://bugs.ghostscript.com/show_bug.cgi?id=691109

Ken Sharp <ken.sharp at artifex.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #13 from Ken Sharp <ken.sharp at artifex.com> 2010-09-27 09:38:06 UTC ---
In fact it is not the presence of a CMYK image which causes the problem. The 
issue arises because both example files contain an imagemask.

Imagemasks do not have a colour space of their own, they are drawn using the 
current colour and space. The code for converting CMYK images to RGB was 
checking the image colour space to see if it was CMYK before converting, but
the masks have a NULL colour space, dereferencing this causes a crash.

Revision 11744:
http://ghostscript.com/pipermail/gs-cvs/2010-September/011766.html

resolves this by checking for a NULL colour space, if it is NULL we know this
is a mask, and masks never need to be converted, so we can simply return,
setting the conversion to false.

It appears, however, that the ICC colour work has broken the implementation,
images in CMYK are not converted to RGB, because pdfwrite doesn't see them as
CMYK, it sees them as ICC. I'll open a new bug report for this and consult with
our colour expert later this week.

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list