template-project/node_modules/jimp
2025-05-30 18:13:30 +08:00
..
dist Initial commit 2025-05-30 18:13:30 +08:00
LICENSE Initial commit 2025-05-30 18:13:30 +08:00
package.json Initial commit 2025-05-30 18:13:30 +08:00
README.md Initial commit 2025-05-30 18:13:30 +08:00

Jimp

JavaScript Image Manipulation Program

The "JavaScript Image Manipulation Program" :-)

An image processing library for Node written entirely in JavaScript, with zero native dependencies.

The default jimp configuration.

Supported types:

  • @jimp/jpeg
  • @jimp/png
  • @jimp/bmp
  • @jimp/tiff
  • @jimp/gif

Read the full docs.

Installation

npm install --save jimp

Usage

const { Jimp } = require("jimp");

// open a file called "lenna.png"
const image = await Jimp.read("test.png");

image.resize(256, 256); // resize

await image.write("test-small.jpg"); // save