Skip to content
/ FLIF Public
forked from FLIF-hub/FLIF

Free Lossless Image Format

License

GPL-3.0 and 2 other licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING
LGPL-3.0
LICENSE_LGPL
Notifications You must be signed in to change notification settings

lgbaldoni/FLIF

 
 

FLIF: Free Lossless Image Format

Build Status Join the chat at https://gitter.im/jonsneyers/FLIF Donate via Gratipay

FLIF is a lossless image format based on MANIAC compression. MANIAC (Meta-Adaptive Near-zero Integer Arithmetic Coding) is a variant of CABAC (context-adaptive binary arithmetic coding), where the contexts are nodes of decision trees which are dynamically learned at encode time.

FLIF outperforms PNG, FFV1, lossless WebP, lossless BPG and lossless JPEG2000 in terms of compression ratio.

Moreover, FLIF supports a form of progressive interlacing (essentially a generalization/improvement of PNG's Adam7) which means that any prefix (e.g. partial download) of a compressed file can be used as a reasonable lossy encoding of the entire image.

For more information on FLIF, visit http://flif.info


###License

FLIF is copylefted free/libre software: you can redistribute it and/or modify it, provided that you share back.

The reference implementation of FLIF is released under the terms of the GNU General Public License version 3 or later (GPLv3+).

The decoder library libflif_dec is released under the terms of the GNU Lesser General Public License (LGPLv3+).


###Build Instructions

GNU/Linux

  • Install the dependencies:
    • for the encoder/decoder: sudo apt-get install libpng-dev
    • for the viewer: sudo apt-get install libsdl2-dev
  • Navigate to the FLIF/src directory and run make to compile everything, or
    • make flif to build just the flif command line tool
    • make libflif.so to build the GPL'ed shared library
    • make libflif_dec.so to build the LGPL'ed decode-only shared library
    • make viewflif to build the example viewer (it depends on the decode library)
  • sudo make install if you want to install it globally

Windows

  • Install Visual Studio (VS Community 2015 is free for open source projects)
  • Open the build\MSVC folder and Double click the dl_make_vs.bat. This will download required libraries and run nmake to build flif.exe
    • nmake libflif.dll to build the shared library
    • nmake viewflif.exe to build the example viewer

OS X

  • Install homebrew
  • Install kegs named pkg-config and libpng
  • Run make in the FLIF/src directory

###Pre-Built Binaries

These will be available on the Release page


###Related Projects

  • Poly FLIF - A javascript polyfill that allows you to use FLIF files in the browser. (Demo)
  • UGUI: FLIF - A GUI that allows you to convert and view FLIF files.
  • flifcrush - A brute-force FLIF optimizer.

About

Free Lossless Image Format

Resources

License

GPL-3.0 and 2 other licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING
LGPL-3.0
LICENSE_LGPL

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 82.1%
  • C 12.5%
  • Makefile 2.4%
  • Batchfile 1.6%
  • Shell 1.1%
  • CMake 0.3%