image_optim
Ruby command line tool and library that optimizes JPEG, PNG, GIF and SVG images by running external compression utilities.
image_optim is a Ruby command line tool and library for optimizing JPEG, PNG, GIF and SVG images. It does the work through external utilities such as optipng, pngquant, jpegoptim, oxipng and svgo, so the gem drives those programs rather than compressing images itself. It runs from the shell, as image_optim with file names or a directory, or from Ruby code, on a developer’s machine or in CI.
The gem installs with gem install image_optim or a Gemfile entry. The README says it is based on ImageOptim.app, the macOS application, which the gem does not extend.
Worth knowing
The utilities are separate installs that the gem does not carry. A container or CI job that runs the tool needs them present in addition to the gem.
Identity
- Status
- Active
- Maintainer
- Ivan Kuchin3
- Maintained by
- Individual
- First release
- 20126
Rendering and deploy
Releases
Adoption
Sources
- 2026-10-28: links, Written in, GitHub stars
api.github.com/repos/toy/image_optim - 2026-10-28: links, Categories, Runs as, Install with
github.com/toy/image_optim/blob/v0.32.0/README.markdown - 2026-10-28: Maintainer, License model
github.com/toy/image_optim/blob/v0.32.0/LICENSE.txt - 2026-10-28: Runtime, Minimum runtime, License
github.com/toy/image_optim/blob/v0.32.0/image_optim.gemspec - 2026-10-28: License, Current major version, Last release
rubygems.org/api/v1/gems/image_optim.json - 2026-10-28: First release
rubygems.org/api/v1/versions/image_optim.json - 2026-10-28: Contributors
api.github.com/repos/toy/image_optim/contributors - 2026-10-28: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/image_optim