by premysl · 1mo ago · 0 comments
That's wrong, you declare this with an ICC profile, done.
Lossy WebP has an important limitation in being YUV 4:2:0. And it's strictly 8-bit. That is the actual reason it doesn't replace JPEG, which is rarely even implemented to a greater extent.
Lossless WebP replaces GIF. Despite much better compression, it doesn't replace PNG, which supports 16 bits, and has stronger metadata support.
JPEG XL and the other modern formats can support at least 10-bits per pixel, that's over a billion colors.
AVIF supports 12-bits per pixel; JPEG XL [1] can support up to 32-bits per pixel.
[1]: https://en.wikipedia.org/wiki/Comparison_of_graphics_file_fo...