SVG image with CMYK colours - is it possible?

2019-02-04 13:34发布

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?

标签: image svg rgb cmyk
2条回答
beautiful°
2楼-- · 2019-02-04 13:40

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 :(

查看更多
神经病院院长
3楼-- · 2019-02-04 13:40

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.

查看更多
登录 后发表回答