@jimp/plugin-contain breaking changes
@jimp/plugin-contain 2.0.0 (November 24, 2026) is its newest release with breaking changes, 36 of them. The first: Removed getBuffer. Every breaking API change we have recorded in @jimp/plugin-contain on npm: 36 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-contain 2.0.0 breaking changes
- Removed
getBuffer
GIF, TIFF and BMP write and getBuffer no longer accept options. github.com - Behavior changed
The cover and contain align behavior changed as part of a breaking fix across several plugins. Check code that relies on the previous alignment results. github.com - Behavior changed
The package now requires Node.js 22 or later. Upgrade the Node.js runtime before using this version. github.com - Behavior changed
The wasm encoders now throw when given options they do not recognize. github.com - Behavior changed
autocrop
ignoreSides and leaveBorder now work with cropOnlyFrames and transparent pixels match differently. github.com - Behavior changed
blur
blur radius is rounded and clamped to 1-256, changing output for some values. github.com - Behavior changed
circle
A radius of 0 now means zero size rather than a previous default. github.com - Behavior changed
color
color with the greyscale action uses greyscale() luminance rather than HSL lightness, changing output. github.com - Behavior changed
compareHashes
compareHashes distances now match pHash() results, so values change. github.com - Behavior changed
composite
Negative opacitySource or opacityDest now 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; contrast(-1) now gives 128. github.com - Behavior changed
convolute
convolute output differs in alpha handling; use preserveAlpha true to leave alpha alone. 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 out-of-bounds rectangles and throws if nothing would be left. github.com - Behavior changed
cssColorToHex
Invalid color strings throw instead of becoming opaque black, so code relying on that fallback must change. github.com - Behavior changed
displace
displace moves alpha with the pixel and stretches the displacement map to the image. github.com - Behavior changed
getPixelColor
getPixelIndex, getPixelColor and setPixelColor throw for NaN coordinates. github.com - Behavior changed
getPixelIndex
getPixelIndex, getPixelColor and setPixelColor throw for NaN coordinates. github.com - Behavior changed
greyscale
greyscale output changes slightly for some grey levels, so stored expectations may need updating. github.com - Behavior changed
Jimp.read
In Node, strings that are not http, https, data or blob URLs are read as files, so a missing file throws. github.com - Behavior changed
measureText
measureText now returns the width of the widest line instead of skipping newlines. github.com - Behavior changed
measureTextHeight
Empty lines are now counted in the measured height. github.com - Behavior changed
otsuThreshold
otsuThreshold now rounds luminance, so results can differ from earlier versions. github.com - Behavior changed
posterize
posterize now rounds to the nearest of n levels, so output differs. github.com - Behavior changed
print
Blank lines are now printed and counted, so text with double line breaks renders an extra line. github.com - Behavior changed
quantize
quantize throws for colors below 1, or below 2 with rgbquant. github.com - Behavior changed
resize
The default resizer premultiplies alpha, so colors next to transparent pixels change. github.com - Behavior changed
rotate
Rotation with a ResizeStrategy mode interpolates instead of picking the nearest pixel, so output changes. github.com - Behavior changed
scan
Regions are clamped to the image, so scan skips pixels outside it. github.com - Behavior changed
scanIterator
scanIterator only visits pixels inside the image and its default size is the remaining area. github.com - Behavior changed
setPixelColor
Out-of-image coordinates no longer paint the edge pixel; they do nothing. github.com - Behavior changed
shadow
shadow output changes because it grows from the image center and rounds blur. github.com - Behavior changed
threshold
threshold greyscales by default, so its output differs now. github.com - Behavior changed
write
write with a string path rejects options no format takes, and GIF, TIFF and BMP take no options. github.com - Configuration changed
Node.js 18 and 20 are no longer supported; upgrade Node.js to 22 or later before installing. github.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.