golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.22k stars 17.7k forks source link

image/jpeg: add a jpeg option to disable chroma subsampling #13614

Open urandom opened 8 years ago

urandom commented 8 years ago

It seems that golang's jpeg encoder only supports downsampling. It would be nice to be able to fine-tune what kind of subsampling is used when encoding jpegs, or alternatively disable downsampling when using a large quality value.

This is a continuation of: https://groups.google.com/forum/#!topic/golang-nuts/VJY87VQpgws

rsc commented 8 years ago

/cc @nigeltao @robpike

nigeltao commented 8 years ago

Yeah, it's a valid bug, but I don't know when I'll have time to fix it.