# JamieMason/ImageOptim-CLI

Make optimisation of images part of your automated build process

Repository: https://github.com/JamieMason/ImageOptim-CLI
Canonical: https://ross.abutalabs.com/products/imageoptim-cli
Homepage: https://foldleft.io/image-tools
Language: Rust
License: MIT
License Family: permissive
Topics: imageoptim, image-optimisation, jpegmini, pngquant, imagealpha, advpng, compress, gifsicle, jpegoptim, jpegtran, optipng, pngcrush, pngout, performance, site-speed, webperf, optimize
Last push: 2026-08-02T12:05:03+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 64, longevity 100
- inputs: {"age_days": 4947, "days_push": 31, "days_rel": 31, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3529, forks 128 (observed 2026-08-28T04:08:08.851987+00:00)

## What it is
A Rust CLI that automates ImageOptim, ImageAlpha, and JPEGmini on macOS to batch-optimize images as part of an automated build process. It accepts glob patterns and outputs savings stats, with optional JSON output.

## Use cases
- compress images in a build pipeline
- batch optimize pngs and jpgs before deploying a website
- reduce image file sizes for better site speed
- automate imageoptim from the command line
- shrink jpeg files losslessly
- optimize images in CI

## When to choose
- you are on macOS and want best-in-class compression via ImageOptim/ImageAlpha/JPEGmini
- you want image optimization integrated into npm-based build scripts
- you need batch processing with glob patterns and dry-run support

## When to avoid
- you are on Linux or Windows - it is macOS only
- you need a pure cross-platform CLI without GUI app dependencies
- you cannot grant Accessibility permissions required for JPEGmini GUI automation

## Facets
- artifact type: cli-tool
- maturity: active
- function: image-processing, cli, developer-tools
- domain: web-development, performance, developer-tools, image-processing
- platform: cli
- tags: image-optimization, imageoptim, jpegmini, pngquant, lossless-compression, build-pipeline, webperf, macos, nodejs

## Member repositories
- JamieMason/ImageOptim-CLI (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:08.851987+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:35:07.175507+00:00, confidence not recorded.
  - readme: https://github.com/JamieMason/ImageOptim-CLI (fetched 2026-08-28T04:08:08.851987+00:00, sha 5a3d68bf4cfb)
  - homepage: https://foldleft.io/image-tools (fetched 2026-08-29T09:29:00.466141+00:00, sha d35297dd5b88)
- Data as of 2026-08-30T08:39:29.467469+00:00.
