---
title: "jimp 2.0.0 Breaking Changes on npm | Since.dev"
description: "What each jimp release removed, renamed or changed: 47 breaking changes in 4 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/jimp
last_updated: 2026-12-04
---

# jimp breaking changes

jimp 2.0.0 (November 24, 2026) is its newest release with breaking changes, 42 of them. The first: jimp 2.0.0 requires Node.js 22 or later. Every breaking API change we have recorded in jimp on npm: 47 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.3.0`, released December 4, 2026. [Source repository](https://github.com/jimp-dev/jimp)

Its 2.0.0 release requires [Node.js 22](https://since.dev/calendar/nodejs/22.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [1.7.0](#v-1-7-0) to [2.0.0](#v-2-0-0): 42 breaking changes in 1 version.
- From [0.22.0](#v-0-22-0) to [2.0.0](#v-2-0-0): 46 breaking changes in 3 versions.

## jimp 2.0.0 breaking changes

jimp 2.0.0, released November 24, 2026: 42 breaking changes.

- **Removed**  

Node.js versions older than 22 are no longer supported. Upgrade Node.js before updating jimp. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Removed**  

Options that did nothing are removed, and rotate's resize modes are interpolated. Code passing those options may need updating. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Removed**  

Jimp now requires Node.js 22 or later, so older Node.js versions no longer run it. [github.com](https://github.com/jimp-dev/jimp/commit/79600e9104cc157c9d0ed35a139f0e3c7ae27982)
- **Removed** `BmpColor`  

BmpColor was removed in jimp 2.0.0 [npmjs.com](https://www.npmjs.com/package/jimp/v/2.0.0)
- **Behavior changed**  

Blank lines in printed text are now kept, so rendered output changes for text containing them. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed**  

Blur radius, cover and contain alignment, resize alpha, autocrop, displace, circle, shadow and compareHashes now produce different results. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed**  

Greyscale results are rounded and color() uses a different luminance, so output pixels can differ from before. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed**  

Invalid CSS colors now throw an error instead of being accepted silently. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed**  

Composite across Jimp classes, mime and background cloning, and per-extension write() option typing have changed behavior. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed** `blur`  

The radius is rounded and clamped to 1-256, so blur output changes for other radii. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `circle`  

A radius of 0 is now treated as 0 rather than its previous meaning. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `color`  

color with the greyscale action now gives the same result as greyscale() instead of tinycolor's HSL greyscale. [github.com](https://github.com/jimp-dev/jimp/commit/4f6db79f3e4827d2175cd10de49b1f9a6b865e97)
- **Behavior changed** `compareHashes`  

compareHashes now decodes hash() output so distances match pHash(), changing results. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `composite`  

Negative opacitySource or opacityDest now clamp to 0 instead of resetting to 1. [github.com](https://github.com/jimp-dev/jimp/commit/0cb5a2ce680cf8a7ae62cf8306ba98510168dc25)
- **Behavior changed** `contain`  

Any invalid align now throws, and an axis with no flag is centered. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `contrast`  

contrast now scales around 127.5 and rounds differently, so output changes. [github.com](https://github.com/jimp-dev/jimp/commit/3e3fe83a4b8ca6b1c87ca269ec912cfdecc3b73d)
- **Behavior changed** `cover`  

Any invalid align now throws, and an axis with no flag is centered. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `crop`  

crop clamps the rectangle to the image and throws when nothing is left, so out-of-bounds crops change. [github.com](https://github.com/jimp-dev/jimp/commit/d734c83632f3dc7683cf8226131bfcaab59389ef)
- **Behavior changed** `cssColorToHex`  

Invalid color strings throw instead of silently becoming opaque black, so fix bad color values. [github.com](https://github.com/jimp-dev/jimp/commit/6270626dfc31235ecd73ff22933c47344b1215aa)
- **Behavior changed** `getPixelColor`  

NaN coordinates now throw instead of reading pixel (0, 0). [github.com](https://github.com/jimp-dev/jimp/commit/fad50e2935d09f9994dc0eb68da0aaac30f29b8c)
- **Behavior changed** `getPixelIndex`  

NaN coordinates now throw instead of reading pixel (0, 0). [github.com](https://github.com/jimp-dev/jimp/commit/fad50e2935d09f9994dc0eb68da0aaac30f29b8c)
- **Behavior changed** `greyscale`  

greyscale() rounds instead of truncating, so some grey levels differ from before. [github.com](https://github.com/jimp-dev/jimp/commit/4f6db79f3e4827d2175cd10de49b1f9a6b865e97)
- **Behavior changed** `Jimp.read`  

Strings that are not http, https, data or blob URLs are read as files, so a missing file now throws ENOENT. [github.com](https://github.com/jimp-dev/jimp/commit/0cb5a2ce680cf8a7ae62cf8306ba98510168dc25)
- **Behavior changed** `measureText`  

measureText now returns the widest line width instead of skipping newlines, so results change. [github.com](https://github.com/jimp-dev/jimp/commit/11538769cea8b8a74185c727435d85bd7b5967c0)
- **Behavior changed** `measureTextHeight`  

Every line break starts a new line, so measureTextHeight counts empty lines that used to be collapsed. [github.com](https://github.com/jimp-dev/jimp/commit/8f1f4ca4ca6df27f097bf5794728dd1ec9983583)
- **Behavior changed** `otsuThreshold`  

otsuThreshold rounds luminance like greyscale now, so its output differs. [github.com](https://github.com/jimp-dev/jimp/commit/4f6db79f3e4827d2175cd10de49b1f9a6b865e97)
- **Behavior changed** `posterize`  

posterize now rounds to the nearest of n levels instead of rounding down, so output changes. [github.com](https://github.com/jimp-dev/jimp/commit/3e3fe83a4b8ca6b1c87ca269ec912cfdecc3b73d)
- **Behavior changed** `print`  

Text with double line breaks prints an extra line, so layouts with blank lines shift. [github.com](https://github.com/jimp-dev/jimp/commit/8f1f4ca4ca6df27f097bf5794728dd1ec9983583)
- **Behavior changed** `quantize`  

Colors below 1 throw, and below 2 with rgbquant, so pass valid color counts. [github.com](https://github.com/jimp-dev/jimp/commit/3e3fe83a4b8ca6b1c87ca269ec912cfdecc3b73d)
- **Behavior changed** `resize`  

The default resizer premultiplies alpha, so colors next to transparent pixels change. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `rotate`  

When rotate gets a ResizeStrategy mode it interpolates instead of taking the nearest pixel, so output changes. [github.com](https://github.com/jimp-dev/jimp/commit/deb4c2b7ab0aee2d773324df1430d1c9a2fc8134)
- **Behavior changed** `scan`  

Regions are clamped to the image, so scan no longer visits outside pixels. [github.com](https://github.com/jimp-dev/jimp/commit/d734c83632f3dc7683cf8226131bfcaab59389ef)
- **Behavior changed** `setPixelColor`  

Calls to setPixelColor with coordinates outside the image no longer paint edge pixels. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed** `threshold`  

threshold greyscales by default, so its output changes with the new greyscale rounding. [github.com](https://github.com/jimp-dev/jimp/commit/4f6db79f3e4827d2175cd10de49b1f9a6b865e97)
- **Behavior changed** `write`  

write with a string path rejects options no format takes, and GIF, TIFF and BMP take no options. [github.com](https://github.com/jimp-dev/jimp/commit/0cb5a2ce680cf8a7ae62cf8306ba98510168dc25)
- **Default changed**  

PNG output now uses the smallest lossless colour type by default, so encoded files may differ from before. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Default changed** `scanIterator`  

Without width and height, scanIterator covers the rest of the image from the given point. [github.com](https://github.com/jimp-dev/jimp/commit/d734c83632f3dc7683cf8226131bfcaab59389ef)
- **Signature changed** `defaultFormats`  

Was const defaultFormats: (typeof bmp | typeof msBmp | typeof gif | typeof jpeg | typeof png | typeof tiff)\[\]; now const defaultFormats: (typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png |... [npmjs.com](https://www.npmjs.com/package/jimp/v/2.0.0)
- **Signature changed** `defaultPlugins`  

Was const defaultPlugins: ({blit\<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;} | {blur\<I extends import("@jimp/types").JimpClass>(image: I, r: number): I; gaussian\<I extends... [npmjs.com](https://www.npmjs.com/package/jimp/v/2.0.0)
- **Signature changed** `Edge`  

Was export {type Edge} from "@jimp/types"; now export {Edge} from "@jimp/types". [npmjs.com](https://www.npmjs.com/package/jimp/v/2.0.0)
- **Signature changed** `Jimp`  

Was const Jimp: {new (options?: import("@jimp/core").JimpConstructorOptions): {bitmap: import("@jimp/types").Bitmap; background: number; formats: import("@jimp/types").Format\<any>\[\]; mime?: string; inspect(): string; toString(): string... [npmjs.com](https://www.npmjs.com/package/jimp/v/2.0.0)
- **Signature changed** `JimpMime`  

Was const JimpMime: {bmp: "image/bmp"; gif: "image/gif"; jpeg: "image/jpeg"; png: "image/png"; tiff: "image/tiff";}; now const JimpMime: {bmp: "image/bmp"; gif: "image/gif"; ico: "image/x-icon"; jpeg: "image/jpeg"; png: "image/png"; tiff... [npmjs.com](https://www.npmjs.com/package/jimp/v/2.0.0)

## jimp 1.7.0 breaking changes

jimp 1.7.0, released November 22, 2026: 1 breaking change.

- **Signature changed** `Jimp`  

Was const Jimp: {new (options?: import("@jimp/core").JimpConstructorOptions): {bitmap: import("@jimp/types").Bitmap; background: number; formats: import("@jimp/types").Format\<any>\[\]; mime?: string; inspect(): string; toString(): string... [npmjs.com](https://www.npmjs.com/package/jimp/v/1.7.0)

## jimp 1.0.2 breaking changes

jimp 1.0.2, released August 31, 2024: 3 breaking changes.

- **Removed**  

Several unusual API surfaces were removed and the main API was reshaped, so code relying on the removed parts must be updated. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v1.0.2)
- **Removed** `default`  

default was removed in jimp 1.0.2 [npmjs.com](https://www.npmjs.com/package/jimp/v/1.0.2)
- **Signature changed**  

All methods were refactored to accept an options object instead of the previous arguments, so existing calls must be rewritten. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v1.0.2)

## jimp 0.22.0 breaking changes

jimp 0.22.0, released February 6, 2023: 1 breaking change.

- **Behavior changed** `loadFromURL`  

Options passed to loadFromURL in Node were forwarded to phin; options not supported by the fetch API will stop working and must be removed or adjusted. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v0.22.0)

## Related packages

- [@jimp/plugin-blit](https://since.dev/packages/npm/@jimp/plugin-blit.md)
- [@jimp/plugin-circle](https://since.dev/packages/npm/@jimp/plugin-circle.md)
- [@jimp/plugin-mask](https://since.dev/packages/npm/@jimp/plugin-mask.md)
- [@jimp/plugin-threshold](https://since.dev/packages/npm/@jimp/plugin-threshold.md)
- [@jimp/plugin-print](https://since.dev/packages/npm/@jimp/plugin-print.md)
- [@jimp/plugin-blur](https://since.dev/packages/npm/@jimp/plugin-blur.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
