4 ms·
Does anyone know what fraction of jpegs in the real world are 4:2:0? For photos I use whatever the camera likes, but for everything else I use 4:4:4.
by Dylan16807 5y ago
Does anyone know what fraction of jpegs in the real world are 4:2:0?
For photos I use whatever the camera likes, but for everything else I use 4:4:4.
- NL807 5y ago> Does anyone know what fraction of jpegs in the real world are 4:2:0? Most of them. Pretty much the default subsampling for libjpeg(-turbo).
- npteljes 5y agoI sampled my jpegs randomly. My image downloads seem to be all 420, and the photos 422.
- colonwqbang 5y agoIt's good to remember that image sensor pixels only have one colour anyway (they are each either G, R or B). 67% of colour information is made up right from the start before your even encode anything. Another reason why 4:2:0 sampling may not be as bad as it sounds.
- Dylan16807 5y agoFor cameras outputting at their max megapixel rating, yes. If you're outputting at a lower resolution or not using a camera then it can be a notable loss of quality. Most web images are probably scaled down, and in other contexts I bet it's similar. If you're looking at a raw camera shot you're usually only dealing with one at a time, so while simplicity is nice the RAM impact of those will be limited.
- colonwqbang 5y agoIf you're looking to save on storage/bandwidth (hence not using the max resolution of your camera) it can absolutely be a good idea to spend more bits on Y than on C.
- berkut 5y agoYeah, High quality exports (definitely from Lightroom) are normally YCrCb444. You don't always need it, but often you do if you really care about fidelity. I know several imaging apps have the ability to select which subsampling type to use as well.
- sbierwagen 5y agoAny jpeg on social media is going to be chroma subsampled when the site recompresses it.
- contravariant 5y agoGoing by the terrible colour bleed I see regularly I'd say quite a few of them, somewhere along their lifetimes. Seriously though chroma subsampling is not kind on any kind of red shape, it's especially bad against white backgrounds.
- astrange 5y agoThat's because JPEG decoders use poor upscaling algorithms. I think libjpeg uses nearest neighbor. It's pretty easy to write a better one since the full resolution image is already available for the Y plane, you can do super resolution.
- contravariant 5y agoWell easy is relative, but yeah you can do quite a lot better than the basic bilinear or bicubic upsampling that seems to be common. However most common image tools (and video players) don't seem to put in the effort, with very few exceptions.
- versteegen 5y agoImageMagick seems to encode JPEGs as YUV444 for quality > 90, and I saw at least one other JPEG encoder use the same quality threshold.