Open jakearchibald opened 6 years ago
Maybe I'm wrong, but doesn't a 100% quality indicate lossless transform?
It doesn't, it means "run the MozJPEG encoder with a quality level of 100".
(that's how it works in Photoshop etc too)
Yeah, the setting of 100 will just use a higher resolution quantization table for the DCT transform. That part might be close to lossless, but it’s not guaranteed. Before we get to that stage, tho, the codec will:
which are all lossy steps.
(I think mozjpeg disables chroma subsampling at qualities > 90)
(I think mozjpeg disables chroma subsampling at qualities > 90)
You're right, MozJPEG disables it at qualities >= 90. You can use this image to make sure, it'll get darker if chroma subsampling is enabled.
I don't know if this should be V1 or not…
Some JPEG encoders support lossless transforms, such as MozJPEG. We should enable this.
Currently our encoders take image data, so we need to figure out when it's acceptable to pass through the source file directly.
The options UI may need to be aware of when lossless transforms are possible.