Image processing in plain JavaScript.
Jimp reads, edits and writes images in Node.js and the browser. It's written entirely in JavaScript, so there are no native dependencies to install or compile.
npm install jimp Every example on this site runs the real Jimp, in your browser.
Try it
Each button runs a real Jimp method on the image. The code panel shows the program you'd write to get the same result.
Full playgroundimage.pixelate(8)Docs →Pixelate the whole image, or only a region of it. Drag on the image to choose the region.
import { Jimp } from "jimp"; const image = await Jimp.read("dice.png"); // Click a method above to add it here await image.write("output.png");
Features
Common formats
PNG, JPEG, GIF, BMP, TIFF and ICO are built in. Add WEBP, AVIF, JPEG XL, JPEG 2000 and SVG with WASM plugins.
Formats →Image methods
Resize, crop, rotate, blur, adjust color, composite, draw shapes and more. Every method is chainable.
All methods →Runs anywhere
Node.js, browsers, web workers and Cloudflare Workers. No native dependencies.
Browser guide →Extensible
Write plugins for new methods or formats, or build a smaller Jimp with only what you use.
Writing plugins →How it works
Every Jimp program follows the same three steps.
Read a file, URL or buffer.
import { Jimp } from "jimp";
const image = await Jimp.read("photo.jpg");Call methods. Each one edits the image in place.
image .resize({ w: 800 }) .greyscale();Write a file, or get a buffer or data URL.
await image.write("photo-small.png");Documentation
Guides walk through common tasks. The method reference covers every API, with live previews.