Giter Club home page Giter Club logo

image-compression-benchmark's Introduction

Image Compression Benchmarks

This compression ratio tests are implemented on compressors:

  • libjpeg-turbo-1.5.1
  • mozjpeg-3.2
  • guetzli-1.0.1
  • guetzli then mozjpeg

with 2 image set:

  • CMS images.
  • product images.

Notes:

  • libjpeg/ mozjpeg are lossless compression.
  • guetzli is lossy compression with default parameters, means butteraugli score ~ 0.97.

Prerequisites

  • ./install.sh
  • ./do_mozjpeg_tests.sh
  • ./do_guetzli_tests.sh
  • ./guetzli_then_mozjpeg.sh
  • ./compare.sh

Results

CMS images

  • Artifacts: 113 images (inputs/cms).
  • Low/ medium quality.
Image type Size Compare to inputs
inputs 4093 kB 0%
libjpeg 3876 kB -5% smaller
mozjpeg 3716 kB -9% smaller
guetzli 2672 kB -34% smaller
guetzli_then_mozjpeg 2582 kB -36% smaller

Product images

  • Artifacts: 493 images (inputs/products).
  • Good quality.
Image type Size Compare to inputs
inputs 79925 kB 0%
libjpeg 60094 kB -24% smaller
mozjpeg 55325 kB -30% smaller
guetzli 43703 kB -45% smaller
guetzli_then_mozjpeg 40172 kB -49% smaller

Conclusions

  • mozjpeg is 4.13% - 8% better than libjpeg.
  • The output of guetzli looks good, can't see the difference with human eyes.
  • The compression time of guetzli is extremely slow (On a c4.2xlarge instance, guetzli compression on 493 product images takes 66 minutes).

image-compression-benchmark's People

Contributors

vinhlh avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.