FLIF — Free Lossless Image Format

Alex Ionescu
PixelsMarket
Published in
2 min readNov 15, 2015

FLIF is a novel lossless image format which outperforms PNG, lossless WebP, lossless BPG and lossless JPEG2000 in terms of compression ratio.

FLIF works well on any kind of image, so the end-user does not need to try different algorithms and parameters. A FLIF image can be loaded in different ‘variations’ from the same source file, by loading the file only partially. This makes it a very appropriate file format for responsive web design.

Compared to other file formats, FLIF is:

  • 26% smaller than brute-force crushed PNG files,
  • 35% smaller than typical PNG files,
  • 37% smaller than lossless JPEG 2000 compression,
  • 15% smaller than lossless WebP,
  • 22% smaller than lossless BPG.

FLIF file format by example:

FLIF Loseless File Format

This is a 1969x1307 image from pngimg.com, with four 8-bit channels (three for RGB color and one for alpha/transparency).

Here are the sizes of this image in various image file formats:

  • 10,293,932 bytes for uncompressed RGBA
  • 693,075 bytes for PNG with Adam7 interlacing
  • 657,022 bytes for PNG with Adam7 interlacing after brute-force pngcrush
  • 562,214 bytes for JPEG 2000 (lossless)
  • 533,004 bytes for the original PNG file as found on pngimg.com
  • 495,625 bytes for PNG, after brute-force pngcrush
  • 447,419 bytes for PNG, using PNGOUT
  • 334,889 bytes for BPG (lossless)
  • 328,650 bytes for WebP (lossless)
  • 299,643 bytes for FLIF
  • 282,655 bytes for FLIF without interlacing

[zilla_button url=”http://flif.info/" style=”light-blue” size=”medium” type=”square” target=”_self”] Find out more about FLIF [/zilla_button]

--

--