Skip to content
docs
GitHub 4.2M /week v2.3.0

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 playground
Playground
image.pixelate(8)Docs →

Pixelate the whole image, or only a region of it. Drag on the image to choose the region.

8px
region only
Loading Jimp…Drop an image to load it
PNG
index.js
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

How it works

Every Jimp program follows the same three steps.

1 Load

Read a file, URL or buffer.

index.js
import { Jimp } from "jimp";
const image = await Jimp.read("photo.jpg");
2 Manipulate

Call methods. Each one edits the image in place.

index.js
image
.resize({ w: 800 })
.greyscale();
3 Save

Write a file, or get a buffer or data URL.

index.js
await image.write("photo-small.png");

Documentation

Guides walk through common tasks. The method reference covers every API, with live previews.