Need help with cjpeg-dssim?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

196 Stars 11 Forks 8 Commits 6 Opened issues


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

Services available


Need anything else?

Contributors list

# 231,544
8 commits



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

  • ImageMagick >= v.6
  • dssim -
  • jpegoptim -
  • mozjpeg -

CLI usage example

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

Supported encoders: * jpegoptim * mozjpeg

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.