jpegoptim is a command-line image optimization utility designed to reduce the file size of JPEG images. It uses the libjpeg library to perform lossless optimization through Huffman table improvements. Users can also enable lossy compression by specifying maximum image quality levels or target file sizes. The application provides options for preserving or removing EXIF, IPTC, XMP, ICC profiles, and other embedded metadata. It supports converting JPEG images between progressive and baseline encoding. Batch processing enables users to optimize multiple images through a single command. Its lightweight architecture and standard stream support make it suitable for automated image processing, website optimization, and digital asset management workflows.
Features
- Lossless JPEG compression through optimized Huffman coding tables
- Configurable lossy compression with adjustable quality and target file sizes
- Selective preservation or removal of embedded image metadata and color profiles
- Conversion between progressive and baseline JPEG image encoding
- Batch image optimization with configurable destination and overwrite settings
- Standard input and output support for automated image processing workflows