Skip to content

Jimp

The JavaScript Image Manipulation Program

Image Formats

Supported image formats include PNG, JPEG, BMP, GIF, and TIFF.

Image Manipulation

You can resize, crop, apply filters and more.

Pluggable

Create your own plugins to add new image manipulation methods or formats.

Just JavaScript

Jimp is just JavaScript, so you can use it in anywhere that JavaScript can be used.

Usage

Using Jimp is simple. Load an image, manipulate it, and save it.

  1. Load an image.

    import { Jimp } from "jimp";
    const image = await Jimp.read("test/image.png");
  2. Manipulate the image.

    image.resize({ width: 100 });
  3. Save the image.

    await image.write("test/output.png");