imageoptim-cli is a command-line tool that automates image optimization as part of your build process.
The tool solves the problem of integrating macOS image optimization applications into automated workflows. It wraps ImageOptim, ImageAlpha, and JPEGmini—three separate macOS applications—allowing you to batch-process images without manual intervention. Since JPEGmini lacks a command-line interface, the tool automates its graphical interface, which requires granting accessibility permissions to the program that runs it.
You should adopt this tool if you work on macOS and already use ImageOptim, ImageAlpha, or JPEGmini for image compression. It suits projects with build pipelines that need to optimize images automatically. The tool requires each application to be installed separately on your system; ImageOptim and ImageAlpha are free, while JPEGmini is paid software with lite and pro variants available.
The project is a Rust rewrite of an earlier TypeScript and AppleScript implementation, distributed as platform-specific binaries rather than through package managers. Development activity shows consistent maintenance with a justfile documenting available commands for contributors.