3 ms·
I believe CSS added this so that you could add it in your print stylesheet. It's not intended to be used for display on screens.
by jacobolus 2y ago
I believe CSS added this so that you could add it in your print stylesheet. It's not intended to be used for display on screens.
- RHSeeger 2y agoIt has nothing to do with CSS. An image, encoded using the CMYK color space, will display just fine in a browser (and pretty much any image viewer). It's just that it needs to be converted from CMYK to RGB in order to be displayed. And each browser (rendering engine, really) uses a different algorithm to do that conversion. So the same .jpg/.png/whatever (that uses CYMK) will look different in different browsers.
- jacobolus 2y agoFair enough, but you should never ever do this for images intended for display on emissive displays, unless the goal is narrowly to preview an image for print, and even for that it's probably not a great idea. For a general purpose, the results will just be bad, and anyone putting such images on the web is doing it wrong. Oklab / Oklch is a different topic than the display of bitmap images, so if CMYK JPEGs is what you had in mind it's a bit of a tangent.