SVG image with CMYK colours - is it possible?

故事扮演 提交于 2019-11-29 02:32:42

问题


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?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/3405689/svg-image-with-cmyk-colours-is-it-possible

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!