[xep-support] CMYK Colors in SVG--No Joy

Chris Lilley chris at w3.org
Mon Mar 21 07:13:15 PST 2005


Sorry to be very late responding to this

On Tuesday, February 1, 2005, 4:56:21 AM, Eliot wrote:

EK> I'm trying to get CMYK colors to work in SVG. The 4.1 docs say that 
EK> "#CMYK ... pseudoprofile names can be used in icc-color()".

Oh, yuk. We didn't do it that way for a reason. If you use an ICC
profile, it has to have a valid profile connection space - such as CIE
LA - not 'device CMYK'.

EK> However, there's no example I could find in the docs and various Google
EK> searches and a scan of the SVG spec didn't provide any enlightenment.

EK> Here's what I'm trying to specify:

EK> <path d="M 0 100
EK>           A 100,100 0 0,1 100,0
EK>           L 100 100
EK>           L 0 100
EK>           z"
EK>           fill="icc-color(#CMYK, 0.3,0,0,0)"
EK>   />

ignoring the dubious profile, that's also incorrect syntax.

http://www.w3.org/TR/SVG11/painting.html#SpecifyingPaint

see the BNF - the ICC color needs toe preceeded by a fallback sRGB color
specification, for use by user agents that do not support, or cannot
locate, the specified ICC profile.

RenderX guys, to achieve what you seem to want (device CMYK) please see
http://www.w3.org/TR/SVG12/painting.html#deviceColor-elem



-- 
 Chris Lilley                    mailto:chris at w3.org
 Chair, W3C SVG Working Group
 W3C Graphics Activity Lead

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list