Free Lossless Image Format
{{Short description|Raster graphics format}}
{{More citations needed|date=September 2017}}
{{Use dmy dates|date=October 2015}}
{{Infobox file format
| name = Free Lossless Image Format
| logo = File:FLIF.svg
| screenshot = FLIF encoder.png
| extension = .flif
| mime = image/flif
| uniform type = public.flif
| magic = FLIF
| developer = Jon Sneyers and Pieter Wuille
| owner =
| type =
| genre = lossless bitmap image format
| latest release version = FLIF16
| open = Yes
| website = {{url|http://flif.info}}
| typecode =
| containerfor =
| containedby =
| extendedfrom =
| extendedto = FUIF, JPEG XL{{cite web |title=Notice for JPEG XL |website=GitHub |date=2020-04-12 |url=https://github.com/FLIF-hub/FLIF/commit/973a6a564fbdffc2aff38ff474dd35aa5bb95aa7 |access-date=2021-01-19}}
}}
{{Infobox software
| name = FLIF, reference implementation
| released = {{start date and age|df=yes|2015|10|03}}
| latest release version = 0.4
| latest release date = {{Start date and age|2021|11|21|df=yes}}{{cite web |url=https://github.com/FLIF-hub/FLIF/releases/tag/v0.4 |title=Release v0.4 |website=FLIF-hub/FLIF |date=2021-11-21}}
}}
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.
{{cite web
| title = FLIF is a New Free Lossless Image Format That Raises the Compression Bar
| date = 2015-10-02
| publisher = PetaPixel
| url = http://petapixel.com/2015/10/02/flif-is-a-new-free-lossless-image-format-that-raises-the-compression-bar/
| access-date = 2016-10-20
}}
FLIF supports a form of progressive interlacing (a generalization of the Adam7 algorithm) with which any partial download (greater than couple hundred bytes{{cite web |title=Image compression race: PNG Adam7 vs FLIF (time: 0:00) |website=YouTube |date=2015-09-06 |url=https://www.youtube.com/watch?v=ByH7RMsMxBY |access-date=2021-01-19}}) 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.
History
The format was initially announced publicly in September 2015,
{{cite web
| title= Free Lossless Image Format (FLIF)
| date= 2015-09-06
| url= https://boards.openpandora.org/topic/18485-free-lossless-image-format-flif/
| archive-url= https://web.archive.org/web/20150912123111/http://boards.openpandora.org/topic/18485-free-lossless-image-format-flif/
| archive-date= 2015-09-12
}}
with the first alpha release occurring about a month later, in October 2015.
{{cite web
| title= Release v0.1-alpha
| date= 2015-10-03
| website= FLIF-hub/FLIF
| url= https://github.com/FLIF-hub/FLIF/releases/tag/v0.1-alpha
}}
The first stable version of FLIF was released in September 2016.
{{cite web
| title= Release v0.2
| date= 2016-09-22
| website= FLIF-hub/FLIF
| url= https://github.com/FLIF-hub/FLIF/releases/tag/v0.2
}}
Design
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{{Cite web|url=https://flif.info/spec.html#_overview_of_the_format|title=FLIF16 Specification|website=flif.info|access-date=2019-11-28}} (unlike {{YCbCr}} that loses some color information to rounding errors, independently of its use in otherwise lossy JPEG). Not yet implemented are some features,{{Cite web|url=https://github.com/FLIF-hub/FLIF/issues/258|title = YCoCg Heuristics · Issue #258 · FLIF-hub/FLIF| website=GitHub }} 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.
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
File:UGUI FLIF screenshot.png]
- XnView supports FLIF since version 2.36.{{cite web|url=http://newsgroup.xnview.com/viewtopic.php?f=35&t=34085|title=XnView 2.39|author=Pierre-Emmanuel Gougelet|publisher=XnView|date=2016-11-08|access-date=2017-09-15}}
- ExifTool supports reading and writing metadata in FLIF images since version 10.31.{{cite web|url=http://owl.phy.queensu.ca/~phil/exiftool/ancient_history.html#v10.31|title=ExifTool Ancient History|author=Phil Harvey|publisher=ExifTool|date=2016-10-19|access-date=2017-11-01}}
- [https://flif.info/UGUI_FLIF/ UGUI-FLIF] supports preview and converting PNG file to FLIF.{{Cite web|url=http://flif.info/UGUI_FLIF/|title=UGUI: FLIF Download|website=flif.info|access-date=2018-12-27}}
- IrfanView supports reading FLIF images since version 4.52.{{Cite web|url=https://www.irfanview.com/main_history.htm|title=History of IrfanView Changes/Versions: [4.52 current 2018-12-12]|author=Irfan Skiljan|date=2018-12-12|access-date=2018-12-28}}{{Cite web|url=https://irfanview-forum.de/showthread.php?t=11867|title=IrfanView 4.52 has been released today -IrfanView Support Forum|author=Kuki Dent|date=2018-12-13|access-date=2018-12-28|archive-date=28 December 2018|archive-url=https://web.archive.org/web/20181228175001/https://irfanview-forum.de/showthread.php?t=11867|url-status=dead}}
References
{{Reflist|2}}
External links
{{Portal|Free and open-source software}}
- {{Official website|http://flif.info|FLIF}} – official site
- {{GitHub|FLIF-hub/FLIF}}
- [https://github.com/UprootLabs/poly-flif PolyFLIF] – a Javascript library to decode FLIF in browsers
- {{openhub|FLIF|FLIF}}
- [http://github.com/sveinbjornt/Phew Phew] – native macOS FLIF viewer
- [https://supercompression.ru/ultra7z-flif-optimizer-eng FLIF Optimizer] – tuning parameters for better lossless compression
{{Graphics file formats}}
{{Compression formats}}
Category:Animated graphics file formats