[기타]무료 무손실 이미지 포맷 FLIF

페이지 정보

본문


http://flif.info/

 

flif.png

FLIF - Free Lossless Image Format

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

According to the compression experiments we have performed, FLIF files are, on average:

  • 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.

Even if the best image format was picked out of PNG, JPEG 2000, WebP or BPG for a given image, depending on the type of image (photograph, line art, etc), then FLIF still beats that by an average of 10% in our comparisons.

Advantages

Here are some of the key advantages of FLIF:

Best compression

The results of a compression test similar to the WebP study are shown below. FLIF clearly beats other image compression algorithms.

comparison.png

Works on any kind of image

FLIF does away with knowing what image format performs the best at any given task.

You are supposed to know that PNG works well for line art, but not for photographs. For regular photographs where some quality loss is acceptable, JPEG can be used, but for medical images you may want to use lossless JPEG 2000. And so on. It can be tricky for non-technical end-users.

More recent formats like WebP and BPG do not solve this problem, since they still have their strengths and weaknesses.

FLIF works well on any kind of image, so the end-user does not need to try different algorithms and parameters. Here is a selection of different kinds of images and how each image format performs with them. The conclusion? FLIF beats anything else in all categories.

Here is an example to illustrate the point. 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.

compression-kodak.png compression-lukas_medical.png compression-maps.png

Progressive and lossless

FLIF is lossless, but can still be used in low-bandwidth situations, since only the first part of a file is needed for a reasonable preview of the image.

Other lossless formats also support progressive decoding (e.g. PNG with Adam7 interlacing), but FLIF is better at it. Here is a simple demonstration video, which shows an image as it is slowly being downloaded:

 

Lossy compression is useful when network bandwidth or diskspace are limited, and you still want to get a visually OK image. The disadvantages of lossy compression are obvious: information is lost forever, compression artifacts can be noticeable, and transcoding or editing can cause generation loss. With better compression, the need to go there is lessened.

Here is an example to illustrate the progressive decoding of FLIF, compared to other methods.

Responsive by design

 

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.

Read more about FLIF and Responsive Web Design

No patents, Free

Unlike some other image formats (e.g. BPG and JPEG 2000), FLIF is completely royalty-free and it is not encumbered by software patents.

FLIF is Free Software. It is released under the GNU General Public License (GPL) version 3 or any later version. That means you get the “four freedoms”:

  1. The freedom to run the program, for any purpose.
  2. The freedom to study how the program works, and adapt it to your needs.
  3. The freedom to redistribute copies.
  4. The freedom to improve the program, and release your improvements to the public, so that the whole community benefits.

Moreover, FLIF is free of charge (gratis).

 

Download

WARNING: FLIF is a work in progress. The format is not finalized yet. Any small or large change in the algorithm will most likely mean that FLIF files encoded with an older version will no longer be correctly decoded by a newer version. Keep this in mind.

FLIF source code

Features

FLIF currently has the following features:

  • Lossless compression
  • Greyscale, RGB, RGBA
  • Color depth: up to 16 bits per channel (high dynamic range)
  • Interlaced (default) or non-interlaced
  • Interlaced files can be decoded quickly at lower quality/resolution (“Responsive By Design”)
  • Progressive decoding of partially downloaded files
  • Animation support
  • Encoding and decoding speeds are not blazingly fast, but they are in the right ballpark

TODO list

FLIF does not yet support the following features:

  • Metadata (EXIF, ICC profiles, XMP, ...)
  • Other color spaces (CMYK, YCbCr, ...)
  • Lossy compression
  • Web browser support
  • A highly optimized implementation

Technical information

FLIF is based on MANIAC compression. MANIAC (Meta-Adaptive Near-zero Integer Arithmetic Coding) is an algorithm for entropy coding developed by Jon Sneyers and Pieter Wuille. It is a variant of CABAC (context-adaptive binary arithmetic coding), where instead of using a multi-dimensional array of quantized local image information, the contexts are nodes of decision trees which are dynamically learned at encode time. This means a much more image-specific context model can be used, resulting in better compression.

Moreover, FLIF supports a form of progressive interlacing (essentially a generalization/improvement of PNG's Adam7 interlacing) 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. In contrast to other interlacing image formats (e.g. PNG or GIF), interlaced FLIF encoding takes the interlacing into account in the pixel estimation and in the MANIAC context model. As a result, the overhead of interlacing is small, and in some cases (e.g. photographs) interlaced FLIF files are even smaller than non-interlaced ones.

글쓴이 명함

nepo 메일보내기 홈페이지 아이디로 검색 회원등급 : 최고관리자 포인트 : 301,049
레벨 31
경험치 96,619

Progress Bar 59%

가입일 : 2015-06-14 02:58:45
서명 : 장비는 도구다.
자기소개 : Photographer & Photo Gear Reviewer
0   0

댓글목록

한댜님의 댓글

오호 좋은데요...? ㅎㅎㅎ

축하합니다. 첫댓글 포인트 2포인트를 획득하였습니다.

Login

Ranking

  • 01 안알랴줌
    241,207
  • 02 † ЌûỲắـĶĬΣ
    214,573
  • 03 봉자아범
    200,485
  • 04 한댜
    139,334
  • 05 고슴도치
    132,659
  • 06 날좋은날예쁘게
    108,482
  • 07 viva
    103,258
  • 08 물빛
    102,791
  • 09 돌팔매
    76,544
  • 10 fomosan
    45,265
  • 01 † ЌûỲắـĶĬΣ
    56,396
  • 02 안알랴줌
    38,589
  • 03 한댜
    38,235
  • 04 고슴도치
    35,039
  • 05 물빛
    28,982
  • 06 돌팔매
    27,560
  • 07 봉자아범
    20,346
  • 08 fomosan
    18,529
  • 09 강달프
    17,013
  • 10 오키드
    15,321