Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVG image with CMYK colours - is it possible?

Tags:

Is it possible to specify that as SVG image should produce output in CMYK? If so, is it a big task? What if the image has its colours specified in RGB, is it difficult to convert them to CMYK?

like image 420
DaveDev Avatar asked Aug 04 '10 12:08

DaveDev


2 Answers

SVG supports ICC colors, using ICC color profiles, which would let you do what you need, but it's not yet supported by any browser :(

like image 146
Lea Verou Avatar answered Oct 12 '22 23:10

Lea Verou


SVG 2.0 adds support for unmanaged colors allowing you to specify a CMYK color with an sRGB fallback:

<circle fill="#CD853F device-cmyk(0.11, 0.48, 0.83, 0.00)"/>

You can also use icc-named-color() to specify a spot color which would be defined in a linked ICC color profile.

At this time, this is still a working draft spec, but some tools may support it such as Apache Batik's svgcolor12 branch.

like image 22
jon_wu Avatar answered Oct 13 '22 00:10

jon_wu