Free Lossless Image Format

From Wikipedia, the free encyclopedia
(Redirected from FLIF)
Jump to navigation Jump to search

Free Lossless Image Format
FLIF logo
File:FLIF encoder.png
Filename extension
.flif
Internet media type
image/flif
Uniform Type Identifier (UTI)public.flif
Magic numberFLIF
Developed byJon Sneyers and Pieter Wuille
Latest release
FLIF16
Extended toFUIF, JPEG XL[1]
Open format?Yes
Websiteflif.info
FLIF, reference implementation
Initial release3 October 2015; 10 years ago (2015-10-03)[2]
Stable release
0.4 / 21 November 2021; 4 years ago (2021-11-21)[3]
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    File:UGUI FLIF screenshot.png
    UGUI-FLIF

    Free Lossless Image Format (FLIF) is a lossless image format claiming to outperform PNG, lossless WebP, lossless BPG and lossless JPEG 2000 in terms of compression ratio on a variety of inputs.[4]

    FLIF supports a form of progressive interlacing (a generalization of the Adam7 algorithm) with which any partial download (greater than couple hundred bytes[5]) of an image file can be used as a lossy encoding of the entire image.

    Jon Sneyers, one of the developers of FLIF, since combined it with ideas from various lossy compression formats to create a successor called the Free Universal Image Format (FUIF), which itself was combined with Google's PIK format to create JPEG XL. As a consequence, FLIF is no longer being developed.[1]

    History

    [edit | edit source]

    The format was initially announced publicly in September 2015,[6] with the first alpha release occurring about a month later, in October 2015.[2]

    The first stable version of FLIF was released in September 2016.[7]

    Design

    [edit | edit source]

    For compression, FLIF uses MANIAC (Meta-Adaptive Near-zero Integer Arithmetic Coding), a variant of CABAC where the contexts are nodes of decision trees which are dynamically learned at encode time.

    FLIF uses the reversible YCoCg color space[8] (unlike Y′CBCR that loses some color information to rounding errors, independently of its use in otherwise lossy JPEG). Not yet implemented are some features,[9] e.g. other "color spaces (CMYK, YCbCr, ...)". The color space conversion is faster, but the overall decoding (and encoding) is still slower than it needs to be, or some of the competition, even with the better color space as that is only a small fraction of the overall process. The format supports an optional alpha channel (RGBA) like PNG (but unlike JPEG); and progressive coding, similar to PNG (unlike it, progressive compression doesn't increase file-size), but as FLIF's algorithm is more complex (and partly, may not have had as much tuning of the implementation yet), it has a higher computational cost; at least lower bandwidth requirements can offset some of that extra time. Progressive coding reduces FLIF's performance.

    FLIF supports grayscale, RGB and RGBA with color depth of 1 to 16 bits per channel.[8]

    FLIF has some tuning parameters which can result in differently sized images. All of the images are still lossless. A flifcrush tool is also available to achieve the minimal size.

    Lossy compression can be achieved by preprocessing. The process is deterministic and does not cause generation loss.

    Support

    [edit | edit source]
    • XnView supports FLIF since version 2.36.[10]
    • ExifTool supports reading and writing metadata in FLIF images since version 10.31.[11]
    • UGUI-FLIF supports preview and converting PNG file to FLIF.[12]
    • IrfanView supports reading FLIF images since version 4.52.[13][14]

    References

    [edit | edit source]
    1. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    2. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    7. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    8. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    9. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    10. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    11. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    12. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    13. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    14. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    [edit | edit source]

    Lua error in mw.title.lua at line 392: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').