Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.5k views
in Technique[技术] by (71.8m points)

前端有办法生成cmyk格式的图片吗

目前碰到的问题是canvas生成的彩色图片打印出来有色差,需要cmyk格式的打印出来才没有色差。各位有碰到过这种问题吗,是怎么解决的。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

你得等 css color module 4 普及了才行,这个目前还是草案阶段,没有浏览器支持,但将来是有可能的。canvas 用的就是 css 的 color 语法,将来 canvas 应该也会提供色彩空间相关的 API 。

有兴趣可以看看,挺有意思的,但是不保证将来语法会变。https://www.w3.org/TR/css-col...


iOS Safari 已经支持了?

https://caniuse.com/css-color...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...