News for hackers. Stuff that matters.
Re:Deringing in DCT via overshoot and clipping by rer0tsaz on Saturday August 29, 2015 @05:20AM (#10139498)
Another thing that can produce out-of-gamut colors in JPEG is chroma subsampling. http://www.glennchan.info/articles/technical/chroma/chroma1.... has a good overview.

Clipping is required by JFIF, so you can't implement spilling in the decoder by default, even if you assume the source was 0-255 RGB. So implementing this in the encoder like the article does is best. but I have mixed feelings about it since it's most helpful for images that shouldn't be saved as JPEG at all.

Re:Deringing in DCT via overshoot and clipping by tedunangst on Saturday August 29, 2015 @11:58AM (#10140409)
There are a lot of photographic jpegs that have black and white text too. Perhaps a caption. Perhaps a road sign in the scene. Reducing block noise seems better than saving such images as bajillion byte pngs.