DO NOT REPLY [Bug 48167] [PATCH] CMYK colors converted to RGB when not provided fo:declarations tag
https://issues.apache.org/bugzilla/show_bug.cgi?id=48167 Glenn Adams gl...@skynav.com changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #11 from Glenn Adams gl...@skynav.com 2012-04-01 06:36:50 UTC --- batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug.
DO NOT REPLY [Bug 48167] New: CMYK colors converted to RGB when not provided fo:declarations tag
https://issues.apache.org/bugzilla/show_bug.cgi?id=48167 Summary: CMYK colors converted to RGB when not provided fo:declarations tag Product: Fop Version: all Platform: PC OS/Version: Windows Vista Status: NEW Severity: normal Priority: P2 Component: general AssignedTo: fop-dev@xmlgraphics.apache.org ReportedBy: vanukuri.ven...@googlemail.com Created an attachment (id=24512) -- (https://issues.apache.org/bugzilla/attachment.cgi?id=24512) AFP output (RGB color space used for the uncalibrated CMYK) When using uncalibrated CMYK colors in FO file without a declarations tag (no need to provide the declaration tag for the uncalibrated CMYK colors, as the color profile source is not a necessary) like fo:block color=rgb-icc(0, 255, 0, #CMYK, 1, 0, 1, 0)GREEN TEXT/fo:block fo:block color=rgb-icc(0, 255, 255, #CMYK, 1, 0, 0, 0)CYAN TEXT/fo:block When trying to generate a AFP output, and the AFP renderer is using RGB color space instead of CMYK color space.. When declarations tag is used, it is generating AFP output with CMYK color space. Please find the input file and output attached to this bug. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug.
DO NOT REPLY [Bug 48167] CMYK colors converted to RGB when not provided fo:declarations tag
https://issues.apache.org/bugzilla/show_bug.cgi?id=48167 Venkat Reddy vanukuri.ven...@googlemail.com changed: What|Removed |Added CC||vanukuri.ven...@googlemail. ||com AssignedTo|fop-...@xmlgraphics.apache. |vanukuri.ven...@googlemail. |org |com -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug.
Re: CMYK Colors
On 16.09.2009 14:37:12 Venkat Reddy wrote: Hi, Can someone please explain me the following queries? 1. What is uncalibrated CMYK color space? That refers to device-specific CMYK colors, i.e. the author of the document already has to know which printer a document is printed on and chooses the colors so they look good on that printer. In contrast to that: if you're working in a calibrated color space (established by a color profile), your colors get converted as necessary in downstream processes in order to recreate the color you intended on any printer. Well, that's a simplified explanation and color experts would probably cry out loud, but it's sufficient to explain the difference. 2. What extent the FOP supports this feature? FOP has a proprietary color function that allows to specify device-specific/uncalibrated CMYK colors: http://xmlgraphics.apache.org/fop/trunk/extensions.html#color-functions I just noticed that I didn't commit some changes that would support a #CMYK pseudo-color-profile as other XSL-FO implementations use. I'll have to look into that. It would allow something like this: rgb-icc(1.0,1.0,0.0,#CMYK,0.0,0.0,1.0,0.0) 3. I have got the following fo source code to specify a background color from the CMYK color profile, from which I am able to produce all three differents documents (PDF, AFP, and PS): ?xml version=1.0 encoding=utf-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=demo fo:region-body background-color=rgb-icc(100%,0%,0%,CMYKProfile,0,1,1,0)/ /fo:simple-page-master /fo:layout-master-set fo:declarations fo:color-profile color-profile-name=CMYKProfile src=ECI_Offset_2009/ISOcoated_v2_eci.icc/ /fo:declarations fo:page-sequence master-reference=demo fo:flow flow-name=xsl-region-body fo:block color=rgb-icc(0%,0%,0%,CMYKProfile,0,0,0,1)Demo/fo:block /fo:flow /fo:page-sequence /fo:root I have downloaded this fo file from the bug https://issues.apache.org/bugzilla/show_bug.cgi?id=43705;. Does this means FOP supports CMYK feature? (I have used the FOP Trunk source for this..) This is using calibrated CMYK colors. The fo:color-profile element establishes the ICC color profile under the name CMYKProfile which is then used for output formats that support ICC profiles (just PDF at the moment). In PostScript, for example, this is mapped to the sRGB fallback. 4. There is a class by name 'CMYKColorSpace.java', when will it be used? As the javadocs say, it is used for uncalibrated CMYK color, i.e. for device-specific CMYK color and when there's no ICC color profile. When you use the cmyk() color function, this class is referenced by the ColorExt instance representing the CMYK color resulting from evaluating the cmyk() function. HTH Jeremias Maerki
Re: CMYK Colors
Hi Jeremias, Excellent. Thanks for your quick response. Thanks, Venkat. Jeremias Maerki wrote: On 16.09.2009 14:37:12 Venkat Reddy wrote: Hi, Can someone please explain me the following queries? 1. What is uncalibrated CMYK color space? That refers to device-specific CMYK colors, i.e. the author of the document already has to know which printer a document is printed on and chooses the colors so they look good on that printer. In contrast to that: if you're working in a calibrated color space (established by a color profile), your colors get converted as necessary in downstream processes in order to recreate the color you intended on any printer. Well, that's a simplified explanation and color experts would probably cry out loud, but it's sufficient to explain the difference. 2. What extent the FOP supports this feature? FOP has a proprietary color function that allows to specify device-specific/uncalibrated CMYK colors: http://xmlgraphics.apache.org/fop/trunk/extensions.html#color-functions I just noticed that I didn't commit some changes that would support a #CMYK pseudo-color-profile as other XSL-FO implementations use. I'll have to look into that. It would allow something like this: rgb-icc(1.0,1.0,0.0,#CMYK,0.0,0.0,1.0,0.0) 3. I have got the following fo source code to specify a background color from the CMYK color profile, from which I am able to produce all three differents documents (PDF, AFP, and PS): ?xml version=1.0 encoding=utf-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=demo fo:region-body background-color=rgb-icc(100%,0%,0%,CMYKProfile,0,1,1,0)/ /fo:simple-page-master /fo:layout-master-set fo:declarations fo:color-profile color-profile-name=CMYKProfile src=ECI_Offset_2009/ISOcoated_v2_eci.icc/ /fo:declarations fo:page-sequence master-reference=demo fo:flow flow-name=xsl-region-body fo:block color=rgb-icc(0%,0%,0%,CMYKProfile,0,0,0,1)Demo/fo:block /fo:flow /fo:page-sequence /fo:root I have downloaded this fo file from the bug https://issues.apache.org/bugzilla/show_bug.cgi?id=43705;. Does this means FOP supports CMYK feature? (I have used the FOP Trunk source for this..) This is using calibrated CMYK colors. The fo:color-profile element establishes the ICC color profile under the name CMYKProfile which is then used for output formats that support ICC profiles (just PDF at the moment). In PostScript, for example, this is mapped to the sRGB fallback. 4. There is a class by name 'CMYKColorSpace.java', when will it be used? As the javadocs say, it is used for uncalibrated CMYK color, i.e. for device-specific CMYK color and when there's no ICC color profile. When you use the cmyk() color function, this class is referenced by the ColorExt instance representing the CMYK color resulting from evaluating the cmyk() function. HTH Jeremias Maerki