# image_optim

Ruby command line tool and library that optimizes JPEG, PNG, GIF and SVG images by running external compression utilities.


Source: https://findsoftware.frbit.cloud/image-optim-ruby/
Last reviewed: 2026-10-28
Listed since: 2026-10-28

## Record

### Links

- repository: https://github.com/toy/image_optim
- docs: https://rubydoc.info/gems/image_optim/frames

### Identity

- status: active
- maintainer: Ivan Kuchin
- maintainerType: individual
- parent: unknown
- firstRelease: 2012
- hqCountry: unknown

### Kind

- category: build-tool, media
- hosting: unknown
- language: ruby
- runtime: ruby
- runtimeMin: ruby 1.9
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: local
- renderingModes: not applicable
- installMethod: gem install

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 0
- latestReleaseDate: 2026-05-27

### Adoption

- githubStargazers: 1548
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 32
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 1632
- dependentPackages: 43

### Sources

- urls: https://api.github.com/repos/toy/image_optim (read 2026-10-28)
- urls: https://github.com/toy/image_optim/blob/v0.32.0/README.markdown (read 2026-10-28)
- maintainer: https://github.com/toy/image_optim/blob/v0.32.0/LICENSE.txt (read 2026-10-28)
- language: https://api.github.com/repos/toy/image_optim (read 2026-10-28)
- category: https://github.com/toy/image_optim/blob/v0.32.0/README.markdown (read 2026-10-28)
- runtime: https://github.com/toy/image_optim/blob/v0.32.0/image_optim.gemspec (read 2026-10-28)
- runtimeMin: https://github.com/toy/image_optim/blob/v0.32.0/image_optim.gemspec (read 2026-10-28)
- runsAs: https://github.com/toy/image_optim/blob/v0.32.0/README.markdown (read 2026-10-28)
- installMethod: https://github.com/toy/image_optim/blob/v0.32.0/README.markdown (read 2026-10-28)
- installMethod: https://github.com/toy/image_optim/blob/v0.32.0/README.markdown (read 2026-10-28)
- installMethod: https://github.com/toy/image_optim/blob/v0.32.0/README.markdown (read 2026-10-28)
- license: https://github.com/toy/image_optim/blob/v0.32.0/image_optim.gemspec (read 2026-10-28)
- license: https://rubygems.org/api/v1/gems/image_optim.json (read 2026-10-28)
- licenseModel: https://github.com/toy/image_optim/blob/v0.32.0/LICENSE.txt (read 2026-10-28)
- firstRelease: https://rubygems.org/api/v1/versions/image_optim.json (read 2026-10-28)
- currentMajor: https://rubygems.org/api/v1/gems/image_optim.json (read 2026-10-28)
- latestReleaseDate: https://rubygems.org/api/v1/gems/image_optim.json (read 2026-10-28)
- githubStargazers: https://api.github.com/repos/toy/image_optim (read 2026-10-28)
- contributors: https://api.github.com/repos/toy/image_optim/contributors (read 2026-10-28)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/image_optim (read 2026-10-28)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/image_optim (read 2026-10-28)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
