Skip to content

Instead of relying on the non-standardized quality metric for JPEG compression, let's make use of a dissimilarity check to hone in on an optimal quality setting for each JPEG to be compressed

Notifications You must be signed in to change notification settings

technopagan/cjpeg-dssim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

cjpeg-dssim

Introduction

Automatically find the ideal JPEG quality setting for a JPEG image by calculating the output images dissimilarity from the input JPEG. This frees us from having to rely on the unstandardized quality integer.

Installation instructions

Place this script anywhere in your $PATH. Requires Bash >= 4.x

Required tools

CLI usage example

cjpeg-dssim jpegoptim /path/to/input-image.jpg

Supported encoders:

  • jpegoptim
  • mozjpeg

About

Instead of relying on the non-standardized quality metric for JPEG compression, let's make use of a dissimilarity check to hone in on an optimal quality setting for each JPEG to be compressed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages