News for hackers. Stuff that matters.
Re:Lepton image compression: saving 22% losslessly from imag... by manigandham on Thursday July 14, 2016 @06:39PM (#12097738)
Yes, it should all just switch to FLIF

http://flif.info/

Re:Lepton image compression: saving 22% losslessly from imag... by rattray on Thursday July 14, 2016 @07:31PM (#12097983)
> FLIF is a novel lossless image format which outperforms PNG, lossless WebP, lossless BPG, lossless JPEG2000, and lossless JPEG XR in terms of compression ratio.

> 74% smaller than lossless JPEG XR compression.

> Works on any kind of image

Re:Lepton image compression: saving 22% losslessly from imag... by jacobolus on Thursday July 14, 2016 @08:10PM (#12098171)
> outperforms PNG, lossless WebP, lossless BPG, lossless JPEG2000, and lossless JPEG XR

PNG was not designed to be used for photograph-like images. The rest of those were not designed to be lossless formats, the lossless version is just a tacked-on afterthought.

Very unsurprising to find a codec that can beat those.

Re:Lepton image compression: saving 22% losslessly from imag... by are595 on Friday July 15, 2016 @12:08PM (#12101973)
In my own tests, I found FLIF generally beats PNG (PNG Crush/Optipng both in brute-force mode) for comics (greyscale, majority white) as well, but by a less significant margin.

It's also worth noting that there aren't many other lossless formats, so it's still a valid comparison. I'm sure neither TIFF nor RAW outperform FLIF either.

Re:Lepton image compression: saving 22% losslessly from imag... by rleigh on Sunday July 17, 2016 @05:35AM (#12109571)
That's not a valid comparison for TIFF. TIFF is a container which supports multiple compression algorithms. You could plug FLIF in as a compression algorithm and use it directly.
Re:Lepton image compression: saving 22% losslessly from imag... by are595 on Sunday July 17, 2016 @04:49PM (#12111751)
Alright, well against current commonly supported TIFF compression algorithms such as LZW, Packbits, and ZIP.
Re:Lepton image compression: saving 22% losslessly from imag... by manigandham on Thursday July 14, 2016 @09:04PM (#12098363)
It also loads progressively and has a novel feature that lets a client determine how much detail to render, then stop loading any more data, all while using the same file.

http://flif.info/example.html

Re:Lepton image compression: saving 22% losslessly from imag... by usrusr on Friday July 15, 2016 @07:14AM (#12100145)
This would be a totally awesome feature if the quality of a truncated FLIF came anywhere close to files tailored to that size in “real“ lossy formats. Unfortunately, according to that example page, truncated FLIF falls far behind. It might find a niche where data reduction and scale reduction fall together (the last example)
Re:Lepton image compression: saving 22% losslessly from imag... by colechristensen on Thursday July 14, 2016 @11:18PM (#12098758)
What are the processing implications?

The lack of processing comparisons raises that question pretty loudly, and it's definitely important in a mobile world. There's more to performance than size