The Presso icon: a picture pressed between two plates
Command lineLinux and macOSLossless by default

Smaller images. Same pixels.

Presso shrinks PNG, JPEG and GIF files without visible change, on Linux servers and Macs. One command, the same result everywhere, and safe to run in a build or on uploads.

DemoPick a command and watch what Presso would print
Terminal

      

Example output in Presso’s real format, with made-up file names. Nothing on your device is read or changed.

What it promises

Safe enough to leave in the build.

An optimiser that runs unattended has to be boring. These are the rules Presso keeps.

Lossless by default

PNG, JPEG and GIF files come out with the same pixels and the same colour profile. Nothing is resized or converted to another format.

The original stays until every check passes

A file is replaced by a rename in the same folder, and only when the new copy is valid and smaller.

Never the reason a build fails

A missing tool or an unreadable file is reported and skipped. Only presso check exits 1, and only for files that aren’t optimised.

Fast the second time

Finished files are remembered by content hash, so running it again over the same assets takes no time.

A check for CI

presso check changes nothing and exits 1 if any file would shrink by 2% or more.

The same on a server and a Mac

It calls the same open tools on both (oxipng, jpegoptim, gifsicle), so a build gives the same bytes wherever it runs.

Lossy, checked

A lossy copy has to earn its place.

With --lossy, Presso also tries pngquant and JPEG quality 88. Then it decodes the original and the copy itself and compares them. The copy is kept only if it passes all three tests.

Most images are refused, on purpose.

On a set of 26 real app icons and screenshots, Presso accepted 6 lossy copies (53–68% smaller, similarity 0.995 to 0.9997) and refused the rest. The patch limit is why: a lossy tool can flatten one small, faint area while the average still looks fine.

A lossy replacement keeps its original, and presso restore puts it back.

Commands

Five commands, two flags.

Questions

Good to know.

Which formats does it handle?

PNG, JPEG and GIF. GIFs are only ever optimised losslessly.

What isn’t built yet?

Video, PDF, WebP and AVIF output, resizing, watching a folder for new uploads, and a Mac app. Presso does none of these today.

How is it different from Clop?

Clop is a Mac app that optimises what you copy, drop or save, and it is lossy by default. Presso is for the places Clop can’t run: servers, CI and build scripts. It was written from scratch; no Clop code is used.

What does it need installed?

The release is a single file with no runtime to install. It calls oxipng, jpegoptim and gifsicle, plus pngquant and djpeg for --lossy. presso doctor lists what’s missing and the command to install it.

Which folders does it leave alone?

node_modules, .git, .build, DerivedData, .venv and .cache are never entered.

Can an AI coding tool use it?

Yes. presso skill install writes a skill file for Claude Code, Codex, Cursor and OpenCode, so an agent knows the commands, runs a dry run first and asks before using --lossy.

Install Presso.

Single-file binaries for Linux and macOS (x64 and arm64), mirrored directly from Piper with SHA-256 verification. No Bun or GitHub access needed.

curl -fsSL https://piper.sydney/downloads/install/presso.sh | bash
Changelog

What’s new

Every published release, newest first, taken from the release notes. 3 releases so far.

  1. v0.3.0Latest

    Presso 0.3.0

    • Lossless PDF (qpdf) and lossless WebP (cwebp) optimisation, each checked page-for-page or pixel-for-pixel before the original is replaced, and presso watch <folder> for upload folders. A file that changes while it is being optimised is never replaced.
    • Then presso doctor lists the image tools to install (apt-get install -y oxipng jpegoptim gifsicle pngquant libjpeg-turbo-progs qpdf webp, or brew install oxipng jpegoptim gifsicle pngquant jpeg-turbo qpdf webp).
  2. v0.2.0

    Presso 0.2.0

    • New: presso skill install | status | remove | show teaches AI coding tools (Claude Code, Codex, Cursor, OpenCode) to use presso. It writes a SKILL.md into each installed tool's skills folder, is safe to repeat, previews with --dry-run, reports with --json, and never touches a skill it did not write (exit 3). The install script runs it for you.
    • Then presso doctor lists the image tools to install (apt-get install -y oxipng jpegoptim gifsicle pngquant libjpeg-turbo-progs, or brew install oxipng jpegoptim gifsicle pngquant jpeg-turbo).
  3. v0.1.0

    Presso 0.1.0

    • First release. Lossless PNG, JPEG and GIF optimisation that is safe in builds and on servers, plus --lossy copies that are kept only when a similarity check passes. presso check for CI, presso restore, presso doctor.
    • Then presso doctor lists the image tools to install (apt-get install -y oxipng jpegoptim gifsicle pngquant libjpeg-turbo-progs, or brew install oxipng jpegoptim gifsicle pngquant jpeg-turbo).