npm / sharp-cli
sharp-cli
What changed in sharp-cli 2 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
9 breaking28 new APIs and options2 behavior and defaults5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initsharp-cli 616 changes
Breaking changes 3
Tightens option configuration so options require values.
Removes the jpg output format alias; use jpeg instead.
Requires Node.js 20.10.
New APIs and options 11
Added an output template for preserving directories matched by glob inputs.
The resize command now supports percentage-based dimensions.
Adds an option to process images without writing output files.
Adds an output option.
Adds an output option for keeping a gain map.
Adds an input option to limit input channels.
Adds an option to print input and output metadata as JSON.
Adds the --margin option to the trim command.
Adds an output option.
Adds an output option.
Adds an output option for including a gain map.
Fixes and other changes 2
Fixes a bug where format options could cause errors.
Adds graceful handling of partial failures during batch image processing.
sharp-cli 510 changes
Breaking changes 2
Version 5.3.0 is the last release compatible with Node.js 18.
The updated sharp dependency requires Node 18.17 or later.
New APIs and options 7
Added the --bigtiff output option.
Added the dilate operation.
Added the erode operation.
Added the --keepDuplicateFrames output option.
The heif command adds the hbitdepth option.
The heif command adds the miniswhite option.
The trim command adds the lineArt option.
Fixes and other changes 1
Fixed a bug that silently ignored numeric option values of zero, including --compressionLevel, --dither, --delay, and --effort.
sharp-cli 410 changes
Breaking changes 2
Renamed --band to --channel for the extractChannel command.
Removed --density from the joinChannel command.
New APIs and options 5
Added the affine command.
The composite command now accepts multiple images.
Added --background to the tile command.
Added --basename to the tile command.
Added --skipBlanks to the tile command.
Behavior and default changes 1
Updated --kernel option usage in the convolve command.
Fixes and other changes 2
Updated --offset option usage in the linear command.
Updated matrix positional usage in the recomb command.
sharp-cli 36 changes
Breaking changes 1
The updated sharp dependency requires Node.js >= 14.15.
New APIs and options 4
Adds the --background option when trimming images.
Adds the --minSize option for WebP output.
Adds the --mixed option for WebP output.
Adds the --reoptimise option for GIF output.
Behavior and default changes 1
Updates TIFF compression options.
sharp-cli 22 changes
Breaking changes 1
Removed the option.
New APIs and options 1
Added the option when compositing images.