4 ms·
Also, even if we model the color space in some overly clever way, we are talking about a JPEG loader here. Its input is inevitably a bag of numbers, and a horri
by owl57 5y ago
Also, even if we model the color space in some overly clever way, we are talking about a JPEG loader here. Its input is inevitably a bag of numbers, and a horribly underspecified one.
- owl57 5y agoI felt like I forgot to add a link. Why don't we see images in wrong color space nearly as often as text with wrong character encoding, remains a mystery to me since the moment I was writing a toy JPEG decoder and found this article: https://entropymine.wordpress.com/2018/10/22/how-is-a-jpeg-images-color-type-determined/ https://entropymine.wordpress.com/2018/10/22/how-is-a-jpeg-i...
- owl57 5y agoProbably, a large part of the answer is that you can walk away from these tables in horror and simply assume YCbCr or grayscale, and still show most files in the wild correctly. Serenity seems to do just that. For text, UTF-8 is still not quite as dominant.