Jimp reads, edits, and writes images in Node.js and the browser with no native dependencies. Methods are chainable; save results with write or getBuffer.
Overview
Jimp is an image manipulation library written entirely in JavaScript for Node.js and browser environments. It avoids native addons, so installs do not require compiling platform-specific bindings.
Common formats such as PNG, JPEG, GIF, BMP, TIFF, and ICO are built in. Optional WASM plugins add WEBP, AVIF, JPEG XL, JPEG 2000, and SVG. You can load from files, URLs, or buffers, transform images in memory with resize, crop, rotate, filters, and compositing, then write files or return buffers or data URLs.
It runs in Node.js, browsers, web workers, and Cloudflare Workers. You can trim the install with a custom Jimp build via createJimp, adding or removing format plugins and manipulation methods. EXIF handling, color spaces, and large-image decode options are documented for production use.
A typical workflow loads an image, applies chained edits in place, and saves the output. Browser usage can rely on CDN delivery; server-side examples include edge image resizing from URL parameters.
Key features
- Zero native dependencies
- Chainable image methods
- PNG, JPEG, GIF, BMP, TIFF, ICO
- Optional WASM format plugins
- Node.js and browser support
- Custom Jimp plugin builds
- Web workers and worker threads
- EXIF read and write support
Use cases
- Server-side thumbnail generation
- In-browser image editing
- Edge image resize and convert
- Batch format conversion in Node
- CDN or worker image pipelines