danielgtaylor / jpeg-archive

Utilities for archiving JPEGs for long term storage.
1.16k stars 122 forks source link

subsampling automatically detected #36

Open abarre opened 8 years ago

abarre commented 8 years ago

I consider using jpeg-recompress at Fasterize. Fasterize automatically optimizes images from various websites.

So, images at the input may be uncompressed or already compressed at different levels.

1 - I wonder if there is a way to know if an image has already been compressed at a chroma subsampling 4:2:0 ?

2 - If my understanding is correct, jpeg-recompress picks the "right" quality score based on an image comparison. Is jpeg-recompress able to know which chroma subsampling is suitable for a given image ? I think that if the input image is already with a subsampling 4:2:0, no more subsampling should be done.