Skip to content

bdaehlie/web_image_formats

Repository files navigation

UPDATE

This repository has been superseded by the following repository:

https://github.com/bdaehlie/lossy-compression-test

The lossy-compression-test repository is essentially a fork of this, updated to work with newer versions of all the codec libraries and with further bug and usability fixes.

What Is This

This is a collection of software that can test the compression efficiency of various lossy compressed image formats, according to various quality metrics. It can create graphs of the test data.

Supported Formats

  • JPEG (via libjpeg-turbo)
  • JPEG (via mozjpeg)
  • WebP
  • HEVC-MSP
  • JPEG XR

Supported Quality Metrics

  • PSNR-HVS-M (luma-only)
  • Y-SSIM (luma-only SSIM)
  • RGB-SSIM (average of SSIM applied to R, G, and B channels)
  • MS-SSIM (luma-only)

Supported Operating Systems

This test suite is developed and tested on Linux (Fedora 20) and OS X (10.9). It's probably easy to get things working on other versions of Linux and OS X. Little to no effort has gone into getting this working on Windows.

Prerequisites

Usage

  1. Install required software
  2. Build included encoder/decoder wrappers and metrics programs
  • OS X: ./build-osx.sh
  • Linux: ./build-linux.sh
  1. Collect data for desired format and images
  • $ ./rd_collect.py jpeg images/kodak/*.png
  • $ ./rd_collect.py mozjpeg images/kodak/*.png
  1. Average data from images
  • $ ./rd_average.py images/kodak/*.jpeg.out > jpeg.out
  • $ ./rd_average.py images/kodak/*.mozjpeg.out > mozjpeg.out
  1. Generate graphs
  • $ ./rd_plot.py Kodak jpeg.out mozjpeg.out

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published