guetzli icon indicating copy to clipboard operation
guetzli copied to clipboard

Support output as YUV420?

Open abcfy2 opened this issue 7 years ago • 2 comments

Sometimes I need more compression ratio for web images. Seems that YUV420 is a good idea.

abcfy2 avatar Mar 19 '17 03:03 abcfy2

If you have a 1024x768 image and store it in YUV420, you will end up with a 1024x768 Y image, and 512x384 U and V images. A YUV444 alternative for more compression is to is to reduce resolution slightly in all planes. For example, resample 1024x768 to 768x512.

YUV444 gives less surprise with demanding images, particularly images with green-red boundaries, and is a denser compromise in the usual case for a given Butteraugli score.

jyrkialakuijala avatar Mar 22 '17 15:03 jyrkialakuijala

While providing either PNG (which are RGB converted to YUV444 in the code) or JPG in YUV444, It would be great to have a guetzli option to downsample the content to YUV420 prior to compression in order to have a resulting JPG YUV420 at the end of the process.

abuisine avatar May 19 '17 23:05 abuisine