You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
This request is not addressing an immediate issue, but rather a future enhancement or suggestion. Feel free to close it if not so appropriate.
Describe the solution you'd like
It could be beneficial for Vivliostyle to parse a form of CMYK color notation like device-cmyk() or cmyk() and provide a fallback to RGB as alpha-support, regardless of whether browsers natively support CMYK colors. While this wouldn't currently produce the most accurate results, it could help maintain visual consistency with other CSS typesetting engines. Moreover, the effort would still be valuable when proper CMYK support is implemented in the future.
The CSS Color Module Level 5 offers a basic method for converting CMYK to RGB, which might be sufficient as a temporary solution:
Using a color management library like Little CMS could provide more accurate conversions. However, this might require more complex steps. (such as using Emscripten or so?)
It works not only in Vivliostyle and other CSS typesetting engines but also in normal browsers.
Interpreting device-cmyk() color using the naive conversion algorithm may be useful for some cases, but I am not sure we should implement it in Vivliostyle. It is not supported in browsers, and I think it is not good if people misunderstand that Vivliostyle really supports device-cmyk color.
Is your feature request related to a problem? Please describe.
This request is not addressing an immediate issue, but rather a future enhancement or suggestion. Feel free to close it if not so appropriate.
Describe the solution you'd like
It could be beneficial for Vivliostyle to parse a form of CMYK color notation like
device-cmyk()
orcmyk()
and provide a fallback to RGB as alpha-support, regardless of whether browsers natively support CMYK colors. While this wouldn't currently produce the most accurate results, it could help maintain visual consistency with other CSS typesetting engines. Moreover, the effort would still be valuable when proper CMYK support is implemented in the future.The CSS Color Module Level 5 offers a basic method for converting CMYK to RGB, which might be sufficient as a temporary solution:
Describe alternatives you've considered
Using a color management library like Little CMS could provide more accurate conversions. However, this might require more complex steps. (such as using Emscripten or so?)
Additional context
The text was updated successfully, but these errors were encountered: