Slashdot Mirror


FLIF: Free Lossless Image Format

nickweller sends a link to an informational post about FLIF, the Free, Lossless Image Format. It claims to outperform PNG, lossless WebP, and other popular formats on any kind of image. "On photographs, PNG performs poorly while WebP, BPG and JPEG 2000 compress well (see plot on the left). On medical images, PNG and WebP perform relatively poorly while BPG and JPEG 2000 work well (see middle plot). On geographical maps, BPG and JPEG 2000 perform (extremely) poorly while while PNG and WebP work well (see plot on the right). In each of these three examples, FLIF performs well — even better than any of the others." FLIF uses progressive decoding to provide fully-formed lossy images from partial downloads in bandwidth-constrained situations. Best of all, FLIF is free software, released under the GNU GPLv3.

15 of 311 comments (clear)

  1. GPLv3 - the kiss of death by Anonymous Coward · · Score: 4, Insightful

    Using GPLv3 will all but ensure no corporate/enterprise support, thus leaving the older, less useful formats in place.

    Sometimes zealots get in their own way...

    1. Re:GPLv3 - the kiss of death by Josh+Coalson · · Score: 5, Interesting

      Using GPLv3 will all but ensure no corporate/enterprise support, thus leaving the older, less useful formats in place.

      Not necessarily. If the format is free and well-defined, there can be other implementations. This happened with FLAC, which started out LGPL.

    2. Re:GPLv3 - the kiss of death by kthreadd · · Score: 5, Informative

      Yeah, doesn't this require that all software that supports the format needs to be released as GPLv3 as well?

      Who's bright idea was that?

      The reference implementation is under GPLv3. Everyone is of course still free to create their own implementation and license it under whichever license they want.

    3. Re:GPLv3 - the kiss of death by thevirtualcat · · Score: 4, Informative

      That was my initial thought too, but unless I'm mistaken, the GPLv3 just covers the reference implementation.

      The fact that the format itself is completely patent and royalty free means that anyone can implement their own version under whatever license they choose. They just can't use the reference implementation.

    4. Re:GPLv3 - the kiss of death by morcego · · Score: 4, Insightful

      Yeah, doesn't this require that all software that supports the format needs to be released as GPLv3 as well?

      Who's bright idea was that?

      The reference implementation is under GPLv3. Everyone is of course still free to create their own implementation and license it under whichever license they want.

      Isn't that exactly the kind of thing that free software was supposed to avoid? Having to reinvent the wheel because some nitwit had it locked on copyright?

      --
      morcego
    5. Re:GPLv3 - the kiss of death by Trailer+Trash · · Score: 4, Interesting

      Note that in the case of Vorbis Stallman actually endorsed the BSD license because he understood that there was no other path to wider adoption. FLIF is the same - it'll remain nothing but a little-known oddity unless they decide to use a BSD license that will allow Microsoft, Opera, Firefox, Chrome, and Safari to use the code.

    6. Re:GPLv3 - the kiss of death by kthreadd · · Score: 4, Informative

      Not at all. The goal of free software is that users should have freedom.

    7. Re:GPLv3 - the kiss of death by serviscope_minor · · Score: 5, Informative

      Note that in the case of Vorbis Stallman actually endorsed the BSD license

      It's actually part of their general policy. For implementing things like reference implementations of unencumbered protocols and file formats, they recommend a permissive license to aid adoption:

      http://www.gnu.org/licenses/li...

      --
      SJW n. One who posts facts.
    8. Re:GPLv3 - the kiss of death by ClickOnThis · · Score: 4, Insightful

      Great, so it was just announced and it already needs to be re-engineered independently

      You're getting it for free, with conditions. Conditions that you (or someone else) can work around. If you don't like the conditions, go create your own format.

      This is why we can't have nice things.

      Freedom is a nice thing, and the GPL gives it to you, provided you don't prevent others from enjoying the same freedom you get from the GPL.

      --
      If it weren't for deadlines, nothing would be late.
    9. Re:GPLv3 - the kiss of death by gstoddart · · Score: 4, Interesting

      Do you know the value of a "free" platform nobody can integrate into their own product without their product becoming GPL, and whose reference implementation can't be used?

      Not a damned thing.

      So people can use it, but they need to write their own. They can't reference the reference implementation without tainting their own.

      So, what exactly is the incentive to give a damn about the format?

      Because I'm reading this as "look at our super awesome new format ... want a lick? Psyche!".

      So, something already GPLd will integrate this. And pretty much everyone else will wonder what they can do with it.

      --
      Lost at C:>. Found at C.
  2. Re:vs TIFF files? by QuasiSteve · · Score: 4, Insightful

    In lossless compression, it beats TIFF hands-down for the mainstream compression methods (packbits, LZW, ZIP). You can use pretty much whatever compression you want in a TIFF file (it's more of a container format than an encoding definition), but given how well FLIF compresses vs other image compression methods, it's pretty good.

    The progressive loading is also superior to TIFF, which generally don't use progressive at all. I'm not sure how much this matters, though, as their example of using it for responsive design assumes that the graphic at lower resolutions 'as is' gives an acceptable enough result to replace current solutions that serve a different resolution image that may well have been specifically tuned for a given resolution/bandwidth. JPG already has similar progressive loading, and I don't know of any browser that will halt a JPG download after the Nth iteration deeming it 'good enough'.

    It also apparently has animation support, which may be better than APNG and MNG and others. For now GIF still seems to rule the animated image domain, despite its many shortcomings (imgur's faked-out video -> gif -> mp4-served-via-html-named-gifv doesn't count).

    On most other fronts, though, it seems TIFF (and other formats) may be superior. A rather big one is that it doesn't yet support metadata. Another big one for the graphics industry would be lack of CMYk and other color spaces.

    It also seems to support 'only' 16 bits per channel. There's a variety of 32bpc encodings for TIFF (straight, LogLUV, etc) and I do hope that it's just an arbitrary limit such that the work done in FLIF could conceivably be added to formats like OpenEXR.

    That would also largely take care of concerns like the lack of additional channels, layers, etc. that can be presented in TIFF. This would make OpenEXR the container format and FLIF the encoding (or, at least, the compression).

    That would still place it squarely in the interest of those dealing with graphics (a very fast decode of the progressive version used when framescrubbing, then loading the full 10k plate when paused for a bit, for example), and not so much the average consumer.

    For consumer adoption, it would need broad support among browsers (lack of webp support means that hasn't particularly taken off), from digital imaging device manufacturers (you're more likely to upload 'a FLIF file' if that's what rolled out of the camera / got written to the SD card to begin with) and in common software (but that tends to follow from the other two).

  3. CPU? Memory? by Anonymous Coward · · Score: 5, Insightful

    How much CPU time does it take to compress vs the others?

    How much memory does it need to compress vs the others?

    How much CPU and memory does it take to decompress vs the others?

    Hard to say it's better without a complete picture.

  4. No real place for it by Solandri · · Score: 4, Interesting
    Unfortunately, I don't really see a killer feature here.
    • Progressive loading (first it loads a low-res lossy version, then additional data sharpens it up, until the final data makes it lossless) was a big deal back in the 1990s when people were on 56 kbps modems and it could take up to a minute for a detailed high-res photo to download. Kodak used a progressive format in their Photo CD standard back when CD readers read data off the CD at standard 154 kbps of audio CDs (in case you ever wondered where the 24x, 52x, etc CD speeds came from). Today, even cell phones have blown past those speeds.
    • A few percent better compression won't matter for the same reason. Bandwidth and storage space are cheap.
    • Universal support for photo-realistic vs. graphic work. Generally people needing those in lossless formats are picky enough to already select exactly which format they're gonna save it in. And again, file size is a much lower priority than compatibility with existing software and printing equipment.

    NASA might be interested in it for transmitting data back from its deep space probes (New Horizons is gonna take a year to transmit back all the pictures it took). Likewise, someone might implement it as a way to reduce bandwidth when browsing the web over expensive satellite data connections while at sea. Those are the only use cases I can think of where low bandwidth still matters.

    1. Re:No real place for it by Anonymous Coward · · Score: 5, Insightful

      You're out of touch with half of the world. Bandwidth is extremely expensive and unreliable. The most popular browser in India simply doesn't load images, unless you explicitly click on them. Efficient progressive image formats would be great in those markets.

      And if you told Google you could use half or less of the storage space for all images all of a sudden of course they would take you up on it. Storage is cheap, but definitely not free.

  5. $5 to $15 per GB by tepples · · Score: 4, Insightful

    Bandwidth and storage space are cheap.

    Bandwidth is not cheap. Cellular and satellite Internet tend to cost $5 to $15 per GB.

    Nor is storage space cheap, especially with the premium for a 64 GB phone over a 16 GB one. Also servers, as Anonymous Coward mentioned in #50646339.