Re:J40: Independent, self-contained JPEG XL decoder
by NavinF on Sunday September 18, 2022 @04:25PM
(#32891169)
> lossy compression using other methods that preserve razor-sharp edges
Examples? I've never seen lossy compressed icons that didn't look like crap, but what you describe should be possible in theory.
Re:J40: Independent, self-contained JPEG XL decoder
by pornel on Sunday September 18, 2022 @06:50PM
(#32892232)
AVIF is the example. It supports palette-based blocks in addition to classic DCT with sophisticated deringing. There's also https://pngquant.org (palette may seem banal, but it is a type of vector quantization) and https://github.com/richgel999/rdopng
Re:J40: Independent, self-contained JPEG XL decoder
by tambourine_man on Sunday September 18, 2022 @11:06PM
(#32893840)
rdopng looks awesome, I wasn’t aware of it, thanks.
AVIF does very well in almost-lossless encoding of the kinds of images you'd use lossless formats for. You can beat any lossless format with imperceptibly small amount of loss.
True lossless is needed for authoring, but not for typical Web distribution. People think lossy can't be used for icon-like images, because they associate lossy with JPEG-like distortions, but it's possible to do lossy compression using other methods that preserve razor-sharp edges.