Be sure first
What blinkimg does not do
Six honest limits, so a migration has no surprises.
No Butteraugli search
auto is a fixed quality per format. squoosh-cli’s auto tried several qualities against a Butteraugli target.
No JPEG XL or WebP2
Output is AVIF, WebP, JPEG or PNG. --jxl, --wp2, --quant and --rotate stop the run with an error.
No HEIC on your machine
sharp’s prebuilt binaries do not decode HEIC. Local mode stops with HEIC_NEEDS_SMART; --smart reads it.
Very tall images stay in their format
A screenshot 22,060 pixels tall is too large for WebP and AVIF. blinkimg says so and writes nothing for that format.
Not the same bytes as squoosh-cli
Different encoder builds and settings write different files. We did not run squoosh-cli, so we print no head-to-head.
--smart uploads your images
Only with --smart and a key. Files go to the Blinkimg API and are deleted within 24 hours.
Switching
Move a build from squoosh-cli in three steps
Most scripts need one changed word and two renamed options.
Step 1
Swap the command
Replace npx @squoosh/cli with npx blinkimg. It needs Node 20.9 or later.
Step 2
Rename two options
cqLevel becomes quality (higher is better) and method becomes effort. Codec flags, -d and -s stay.
Step 3
Check the output folder
Without -d, results go to ./blinkimg-out with the same folders. Your originals stay as they are.
Compressing in the browser instead? The Squoosh alternative compares the web apps. Want to see what your site would save first? The website image analyzer checks a page in the browser, and the image compression API comparison weighs the hosted APIs.