Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By vladolaruv2.0.1MITIn 1 marketplace
Shrinks PNG, JPEG, GIF and SVG images to the smallest version that passes a quality profile you choose. Lossy changes are written only after you keep them on a 1:1 side-by-side review page, and a file already lossy-compressed is refused.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Measured image optimization for PNG, JPEG, GIF and SVG, with WebP and AVIF output on request. Every candidate is measured against a quality profile, the smallest one that passes wins, and nothing that changes pixels is written before you keep it on a side-by-side page.
/optimize-images path/to/images what they are used for
The command loads the image-optimization skill, which:
imgopt.py candidates: a ladder of encoder settings per file, each measured with SSIM, ssimulacra2 and a banding score, with the smallest passing variant as each file's default choice and the savings ranked so you can decide what is worth changing;imgopt.py sheet, where you can browse every measured variant of a file and mark it keep, reject, milder or stronger (a rebuilt page starts from what you already recorded); the page's "Copy verdicts" block goes back to the agent, which stores it with imgopt.py record and, for milder or stronger, picks another variant with imgopt.py choose and shows you a new page;imgopt.py apply writes each kept file and re-measures it in place, or imgopt.py manifest --accepted lists each kept variant and the target to copy it to. Lossless choices need no verdict once you have confirmed the profile; lossy ones need your keep.The variants, crops and page live in a working folder outside the repository (imgopt.py workdir <task>: under ~/Library/Caches/imgopt/work/ on macOS, or $IMGOPT_CACHE when set), so a later session reuses them; imgopt.py clean <folder> removes it. Every measured variant also goes into a variant store shared by all working folders (~/Library/Caches/imgopt/store/ on macOS, or store/ under $IMGOPT_CACHE), so measuring a file set again in a new folder costs no encoding. Variants unused for 30 days are pruned, the store stays under 2 GB, and imgopt.py clean --store prunes it on demand. The store also remembers every lossy variant it produced that changed the file, so a later lossy run refuses to compress such a file a second time, even one the agent copied into place by hand.
| Profile | Gate | For |
|---|---|---|
lossless (default) | identical pixels; colour profile and orientation kept | logos, icons, anything that must not change |
high | SSIM ≥ 0.98, ssimulacra2 ≥ 80, banding ≤ 3 | images a product or page shows |
medium | SSIM ≥ 0.96, ssimulacra2 ≥ 60, banding ≤ 3 | files kept only so old URLs keep working |
The floors were set in one WooCommerce asset session in October 2026 (SSIM floors by a human reviewer, ssimulacra2 floors confirmed by eye), then tested on a 386-file benchmark corpus of photos, screenshots, illustrations, icons and odd inputs, where a reviewer accepted 94 of 97 picks sampled closest to the floors. Banding is gated on palette PNG output only: on the corpus no threshold separated rejected JPEG or WebP picks from accepted ones. WebP and AVIF output is labelled uncalibrated. docs/design.md records where each floor and rule came from, the acceptance evidence and the known gaps; read it before changing a floor, the pick rules or the tooling policy.
/plugin marketplace add vladolaru/claude-code-plugins
/plugin install image-optimizer@vladolaru-claude-code-plugins
codex plugin marketplace add vladolaru/claude-code-plugins
codex plugin add image-optimizer@vladolaru-claude-code-plugins
Use /optimize-images ... in Claude Code or $image-optimizer:optimize-images ... in Codex.
python3 plugins/image-optimizer/scripts/imgopt.py doctor --job recompress --profile high lists what is missing and prints the install lines for it (a brew install line, plus pip or npm lines when Pillow or svgo is missing). On macOS, all of them:
python3 -m pip install --user pillow
brew install mozjpeg oxipng pngquant gifsicle librsvg ffmpeg jpeg-xl webp libavif
npm install -g svgo # svgo 4 or newer
jpegli, for any lossy JPEG output. jpegli's cjpegli is required whenever a high or medium job writes a JPEG, and it cannot be waived: on the benchmark corpus it was the most-picked JPEG encoder, and without it the high ladder saved 4.6 to 15 points less on photos. No package manager ships it, so build it once (needs git, cmake and a C++ compiler; brew install cmake if missing) and put the binary on PATH:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub vladolaru/claude-code-plugins --plugin image-optimizerPlugins from other owners that cover similar ground