@jimp/plugin-color breaking changes
@jimp/plugin-color 2.0.0 (November 24, 2026) is its newest release with breaking changes, 25 of them. The first: Out-of-bounds regions are now clamped to the image in @jimp/plugin-color 2.0.0. Every breaking API change we have recorded in @jimp/plugin-color on npm: 25 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.3.0, released December 4, 2026. Source repository
Its 2.0.0 release requires Node.js 22 or later. Node.js end of life dates.
@jimp/plugin-color 2.0.0 breaking changes
- Behavior changed
Regions extending outside the image are clamped to its bounds instead of being handled as before, which can change results for existing code. github.com - Behavior changed
Node.js 18 and 20 are no longer supported. Upgrade the runtime to Node.js 22 or later before using this version. github.com - Behavior changed
The color, threshold and quantize plugins now compute pixel values differently, so existing output may change. github.com - Behavior changed
blur
blur rounds the radius and clamps it to 1-256, changing output for some radii. github.com - Behavior changed
color
color() uses the same luminance as greyscale, which can change output pixel values for existing code. github.com - Behavior changed
compareHashes
compareHashes distances change so they match pHash() output. github.com - Behavior changed
composite
Negative opacitySource or opacityDest values clamp to 0 instead of resetting to 1. github.com - Behavior changed
contain
contain throws for any invalid align value, and centers an axis with no flag. github.com - Behavior changed
contrast
contrast output changes, and contrast(-1) now gives 128. github.com - Behavior changed
cover
cover throws for any invalid align value, and centers an axis with no flag. github.com - Behavior changed
crop
crop clamps the rectangle to the image and throws if nothing is left. github.com - Behavior changed
cssColorToHex
Unparseable color strings throw Invalid color instead of becoming opaque black. github.com - Behavior changed
greyscale
Greyscale results are rounded and color() uses the same luminance, so code that depends on exact previous pixel values may produce different output. github.com - Behavior changed
Jimp.read
In Node, strings that are not http(s), data or blob URLs are read as file paths. Pass URLs explicitly or use files. github.com - Behavior changed
measureText
measureText now returns the width of the widest line instead of skipping newlines. github.com - Behavior changed
posterize
posterize now rounds to the nearest of n evenly spaced levels instead of rounding down, changing output. github.com - Behavior changed
print
Every line break starts a new line, so blank lines are printed and counted. Adjust text layout that relied on collapsed blank lines. github.com - Behavior changed
quantize
quantize now throws a clear error for colors below 1, or below 2 with rgbquant. github.com - Behavior changed
rotate
rotate's mode with a ResizeStrategy interpolates rotated pixels instead of taking the nearest pixel. github.com - Behavior changed
scanIterator
scanIterator width and height default to the rest of the image and only visit pixels inside it. github.com - Behavior changed
setPixelColor
Out-of-image coordinates no longer paint the edge pixel; the call does nothing. NaN coordinates now throw. github.com - Behavior changed
threshold
With autoGreyscale false, each color channel is thresholded on its own instead of turning the image grey. github.com - Configuration changed
The package now requires Node.js 22 or later, so older Node.js versions must be upgraded before use. github.com - Signature changed
ColorActionName
Was const ColorActionName: Readonly<{LIGHTEN: "lighten"; BRIGHTEN: "brighten"; DARKEN: "darken"; DESATURATE: "desaturate"; SATURATE: "saturate"; GREYSCALE: "greyscale"; SPIN: "spin"; HUE: "hue"; MIX: "mix"; TINT: "tint"; SHADE: "shade"... npmjs.com - Signature changed
methods
Was const methods: {normalize<I extends JimpClass>(image: I): I; invert<I extends JimpClass>(image: I): I; brightness<I extends JimpClass>(image: I, val: number): I; contrast<I extends JimpClass>(image: I, val: number): I; posterize<I... npmjs.com
Related packages
- @jimp/plugin-blit
- @jimp/plugin-circle
- @jimp/plugin-mask
- @jimp/plugin-threshold
- @jimp/plugin-print
- @jimp/plugin-blur
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.