npm / jimp
jimp
What changed in jimp 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-26.
16 breaking
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initjimp 116 changes
Breaking changes 16
Export methods are async, and getBase64 replaces getBase64Async.
Export methods are async, and getBuffer replaces getBufferAsync.
Encoding options such as quality are now passed to getBuffer when retrieving the encoded image, rather than set globally.
Read image height from image.height instead of image.getHeight().
intToRGBA moved from Jimp to a named package export.
Jimp no longer uses a default export; import it as a named export.
The constructor now takes an options object, including width, height, and an optional background color.
Jimp.AUTO was removed because it was only needed for positional arguments.
Load an image or canvas data from a bitmap with Jimp.fromBitmap instead of using the constructor.
Load an image from a buffer with Jimp.fromBuffer instead of passing the buffer to the constructor.
Use Jimp.read to load images asynchronously from disk in Node, from a URL in the browser, or from a Buffer or ArrayBuffer.
Jimp.MIME_* constants moved to the named JimpMime export.
Read the image MIME type from image.mime instead of image.getMIME().
resize now takes an options object instead of positional width and height arguments.
Read image width from image.width instead of image.getWidth().
Export methods are async, and write replaces writeAsync.