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

# @jimp/types breaking changes

@jimp/types 2.0.0 (November 24, 2026) is its newest release with breaking changes, 44 of them. The first: Removes options that had no effect and changes rotate resize modes in @jimp/types 2.0.0. Every breaking API change we have recorded in @jimp/types on npm: 44 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

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).

## @jimp/types 2.0.0 breaking changes

@jimp/types 2.0.0, released November 24, 2026: 44 breaking changes.

- **Removed**  

Options that did nothing were removed, and rotate's resize modes now interpolate. Code passing the removed options or relying on the old resize behaviour must be updated. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Removed**  

Jimp now requires Node.js 22 or later, so upgrade the runtime before updating. [github.com](https://github.com/jimp-dev/jimp/commit/79600e9104cc157c9d0ed35a139f0e3c7ae27982)
- **Removed**  

The package now requires Node.js 22 or later. Users on older Node.js versions must upgrade Node.js before upgrading. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed**  

Pixel calculations in the color, threshold and quantize plugins were corrected, so output values change for existing code. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed**  

The wasm encoders now throw when given options they do not know, so remove any unused options. [github.com](https://github.com/jimp-dev/jimp/commit/deb4c2b7ab0aee2d773324df1430d1c9a2fc8134)
- **Behavior changed**  

Several plugins changed output: blur radius, cover/contain alignment, resize alpha, autocrop, displace, circle, shadow and compareHashes. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed**  

Blank lines in printed text are kept, and composite, mime/background cloning, input types and write() options changed behaviour. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed**  

Invalid CSS colour values now throw an error instead of being accepted, so code passing invalid colours must be fixed. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed**  

Regions extending outside the image are now clamped to the image bounds instead of being handled as before. [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 values. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `border`  

An invalid color string now throws instead of drawing opaque black. [github.com](https://github.com/jimp-dev/jimp/commit/6270626dfc31235ecd73ff22933c47344b1215aa)
- **Behavior changed** `boxShadow`  

An invalid color string now throws instead of drawing opaque black. [github.com](https://github.com/jimp-dev/jimp/commit/6270626dfc31235ecd73ff22933c47344b1215aa)
- **Behavior changed** `color`  

Greyscale output is now rounded and color() uses a different luminance calculation, so output pixel values change. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Behavior changed** `compareHashes`  

Distances from compareHashes now match pHash, so previously stored distance results change. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `composite`  

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

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

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

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

Crop rectangles are clamped to the image and crop throws if nothing is left. [github.com](https://github.com/jimp-dev/jimp/commit/d734c83632f3dc7683cf8226131bfcaab59389ef)
- **Behavior changed** `displace`  

Alpha moves with the pixel and the displacement map is stretched to the image, changing output. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **Behavior changed** `Edge.WRAP`  

Edge.WRAP now wraps coordinates more than one image away, changing results for such coordinates. [github.com](https://github.com/jimp-dev/jimp/commit/fad50e2935d09f9994dc0eb68da0aaac30f29b8c)
- **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 output changes for many grey levels; re-check stored or compared output. [github.com](https://github.com/jimp-dev/jimp/commit/4f6db79f3e4827d2175cd10de49b1f9a6b865e97)
- **Behavior changed** `Jimp`  

An invalid color string now throws instead of creating an opaque black image. [github.com](https://github.com/jimp-dev/jimp/commit/6270626dfc31235ecd73ff22933c47344b1215aa)
- **Behavior changed** `Jimp.read`  

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

loadFont now throws for error responses instead of parsing the error page as a font. [github.com](https://github.com/jimp-dev/jimp/commit/11538769cea8b8a74185c727435d85bd7b5967c0)
- **Behavior changed** `measureText`  

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

Empty lines now count toward measured height and vertical alignment. [github.com](https://github.com/jimp-dev/jimp/commit/8f1f4ca4ca6df27f097bf5794728dd1ec9983583)
- **Behavior changed** `otsuThreshold`  

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

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

Text without maxWidth is aligned differently, newlines are measured, and loadFont HTTP errors are reported differently. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **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`  

Rotating with a ResizeStrategy mode interpolates the pixels 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 out-of-bounds pixels are no longer visited. [github.com](https://github.com/jimp-dev/jimp/commit/d734c83632f3dc7683cf8226131bfcaab59389ef)
- **Behavior changed** `scanIterator`  

Regions are clamped to the image, so out-of-bounds pixels are no longer visited. [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** `shadow`  

The shadow position and blur rounding change, so shadow output differs. [github.com](https://github.com/jimp-dev/jimp/commit/ef51d3c0c4df5191adee01924aa5407e187280c6)
- **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`  

Compositing across Jimp classes, mime and background cloning, Uint8Array/Blob reads and per-extension write() option typing changed. [github.com](https://github.com/jimp-dev/jimp/releases/tag/v2.0.0)
- **Default changed** `scanIterator`  

When width and height are omitted they now default to the rest of the image. [github.com](https://github.com/jimp-dev/jimp/commit/d734c83632f3dc7683cf8226131bfcaab59389ef)
- **Signature changed** `Format`  

Was interface Format\<Mime extends string = string, ExportOptions extends Record\<string, any> | undefined = undefined, DecodeOptions extends Record\<string, any> | undefined = undefined>; now interface Format\<Mime extends string = string... [npmjs.com](https://www.npmjs.com/package/@jimp/types/v/2.0.0)
- **Signature changed** `JimpClassSchema`  

Was const JimpClassSchema: z.ZodObject<{bitmap: z.ZodObject<{data: z.ZodUnion\<readonly \[z.ZodInstanceOf\<Buffer>, z.ZodInstanceOf\<Uint8Array>\]>; width: z.ZodNumber; height: z.ZodNumber;}, z.core.$strip>;}, z.core.$strip>; now const... [npmjs.com](https://www.npmjs.com/package/@jimp/types/v/2.0.0)
- **Signature changed** `write`  

write and getBuffer options for GIF, TIFF and BMP are typed as none, so remove any options passed for them. [github.com](https://github.com/jimp-dev/jimp/commit/0cb5a2ce680cf8a7ae62cf8306ba98510168dc25)

## 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.
