jpegoptim is a utility to optimize jpeg files.
It provides lossless optimization (based on optimizing the Huffman tables) and “lossy” optimization based on setting maximum quality factor.
It’s possible to compress a single file, multiple files at once, or all files within a directory.
jpegoptim is free and open source software.
Key Features
- Supports lossless optimization which is based on optimizing the Huffman tables.
- “Lossy” optimization where in addition to optimizing Huffman tables user can specify upperlimit for image quality.
- Experimental support for arithmetic coding.
- Support for progressive JPEGs. There are options to force all output files to be non-progressive or progressive.
- Uses memory (instead of temporary files) during optimization.
- Cross-platform support – runs under Linux, Mac OS X, Solaris, and Windows.
Website: www.kokkonen.net/tjko/projects.html
Support: GitHub Code Repository
Developer: Timo Kokkonen
License: GNU General Public License v2.0
jpegoptim is written in C. Learn C with our recommended free books and free tutorials.
Related Software
| Console Based Image Compression Tools | |
|---|---|
| MozJPEG | Mozilla JPEG Encoder Project |
| pngquant | Utility and a library for lossy compression of PNG images |
| SVGO | Node.js library and command-line application for optimizing SVG files |
| Oxipng | Multithreaded PNG optimizer, forked from Optipng |
| libjxl | Reference implementation of JPEG XL |
| libjpeg-turbo | JPEG image codec |
| QOI | The Quite OK Image Format |
| YOGA | Yummy Optimizer for Gorgeous Assets |
| pngcrush | Optimizer for PNG files |
| jpegoptim | Optimize JPEG files. Lossless and lossy compression available |
| OptiPNG | Advanced PNG optimizer |
| Guetzli | Perceptual JPEG encoder with excellent compression density at high quality |
| ECT | Fast and effective C++ file optimizer |
| Crunch | Lossy PNG image file optimization |
| zopflipng | PNG optimisation tool using zopfli |
| JPEG Archive | Utilities for archive JPEGs for long term storage |
| optimizt | CLI image optimization tool |
| picopt | Multi format lossless image optimize |
| tinifier | CLI tool for compressing images using the TinyPNG API |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

