PyForge is sold only here, on the official py-forge.com website — beware of imitations.

Back to the catalog

SlimImage

#python#images#webp#performance

Make pages lighter by shrinking a whole folder of images in one run.

$29 Commercial License
Or get every tool, current and future, for $99 with the All-Access Pass

After payment you get an email with your download link within a few minutes. The link is valid for 7 days.

Digital goods. If a tool doesn't work as described, we fix it or refund you — see Terms.

Not sure? Try the free MockForge sample first.

Key features

  • --max-width/--max-height resizing; EXIF rotation applied, GPS metadata removed
  • Transparency kept for WebP/PNG; --lossless suits screenshots
  • Per-file savings report with --json for CI

requirements.txt — Pillow

What's in the ZIP

  • LICENSE
  • README.md — up and running in under a minute
  • requirements.txt — Pillow
  • slimimage.py — complete, readable source code

Why PyForge: Ready-made tools with full source code.

More details

Make pages lighter by shrinking a whole folder of images in one run. SlimImage converts images to WebP, JPEG or PNG, keeps your subfolders and never upscales. - --max-width/--max-height resizing; EXIF rotation applied, GPS metadata removed - Transparency kept for WebP/PNG; --lossless suits screenshots - Per-file savings report with --json for CI Runs with: Python 3 + Pillow (pip install -r requirements.txt). GIF and SVG are skipped — keep your originals.

SlimImageCloud & DevOps
Read the technical deep-diveSlimImage: Automated Web Image Optimization Engine for Engineers
slimimage.pybashExample usage — slimimage.py
pip install Pillow

# Convert a folder to WebP, max 1600 px wide, metadata removed
python3 slimimage.py -i raw_assets -o optimized -f WEBP -q 80 --max-width 1600

# Lossless WebP for screenshots, JSON output for CI
python3 slimimage.py -i screenshots -o out -f WEBP --lossless --json

Quick Start

Runs on Python 3.9 or newer. It needs these packages: Pillow. Install them first with pip install -r requirements.txt.

1 — Install the dependencies

pip install -r requirements.txt

2 — Run it

python slimimage.py --help

How agents & programs use it: Install its requirements in a virtual environment; scripts and AI agents can then run it as a subprocess.

Why developers buy from PyForge

  • Save hours: ready-made, tested tools. Skip writing, debugging and maintaining it yourself.
  • Ready in minutes: one file, drop it in your project and run it.
  • Mostly zero-dependency: no pip install chains, no supply-chain risk.
  • Full source code: readable, auditable, yours to modify.
  • Runs locally and offline: no account, no API key, no data leaves your machine.
  • Pay once, own it: no subscription.
  • Tested before release: every tool is checked before it goes on sale.

All-Access Pass

Get every PyForge tool with the All-Access Pass

48 tools today plus every future release, lifetime commercial license, one payment of $99.

This tool: $29 · All 48 tools: $99

See the All-Access Pass