jimp is a free, open source photo & video editors project written in TypeScript and released under MIT. It has 14,712 GitHub stars, 787 forks and 1 open issues, and was last pushed 39 hours ago. On this registry it ranks #14 of 95 tracked projects in Photo & Video Editors, with 5 head-to-head comparisons available. It gained 10 stars over the last 6 tracked days.

What is jimp?

Jimp — the JavaScript Image Manipulation Program — is a pure-JavaScript image processing library for Node.js and the browser that requires no native dependencies, made for application developers who need to read, transform, and write images directly in JavaScript or TypeScript code.

What it is

Jimp is an MIT-licensed image processing library written in TypeScript and distributed as an npm package, and it runs both in Node.js and in the browser. It is developed in the open on GitHub, where it has 14,702 stars and 786 forks, and it is listed in this registry under Miscellaneous / Photo & Video Editors. Documentation, a getting-started guide, and a playground are hosted at jimp-dev.github.io/jimp/.

The concrete problem it solves is image manipulation without native code. Because the library has zero native dependencies, it avoids platform-specific binary and compilation steps, and the same code can run in the browser as well as on a server. In practice it replaces hand-rolled pixel work and per-project encoder wiring: Jimp reads an image, lets you transform it in memory, and writes the result back out. The README's own example reads test.png, calls image.resize({ w: 256 }), and writes test-small.png.

Key capabilities

  • Format coverage named in the project topics includes PNG, JPEG, GIF, BMP, TIFF, AVIF, and WebP.
  • Manipulation methods include resize, which accepts options such as { w: 256 }.
  • Cropping is among the image operations named in the project topics.
  • Blank images can be created with new Jimp({ width, height, color }), and images already in memory can be loaded with await Jimp.fromBuffer(buffer).
  • Results are saved explicitly through write or getBuffer, because methods like resize only change the image in memory.
  • createJimp from @jimp/core supports custom builds that add file types, switch encoder/decoders, or add and remove plugins.
  • The package is written in TypeScript and has zero native dependencies.

Who uses it and how

  • Node.js services that need to resize or convert images as part of an application pipeline, without adding native build steps.
  • Browser-based projects that need image manipulation on the client side, where a library with zero native dependencies can run directly.
  • TypeScript codebases that prefer an image library written in the same language as the surrounding application.
  • Projects with non-standard format or plugin requirements, which can build a custom Jimp with createJimp from @jimp/core instead of taking the full default surface.
  • Teams upgrading existing code, who are directed to separate v2 and v1 migration guides depending on whether they are on 1.x or v0.

Getting started

Install the package with npm install jimp; Jimp 2.0 requires Node.js 22 or later. Then import { Jimp } from "jimp", read an image with await Jimp.read("test.png"), apply a method such as image.resize({ w: 256 }), and persist it with await image.write("test-small.png").

How it compares

The facts provided name no paid products that jimp replaces and no similar image-processing tools, so it stands alone in this registry on that point. Its distinguishing facts here are its MIT licence, its pure-JavaScript implementation with zero native dependencies, and its support for both Node.js and the browser.

When to use it — and when not

Jimp is a library rather than a hosted service, so there is no database, storage layer, or SMTP configuration to operate: it is embedded in an application and runs wherever that application runs. It is not the right choice for someone seeking a graphical, hosted image editor, nor for a project that cannot run Node.js 22 or later for version 2.0. Teams on 1.x or v0 should expect migration work, since the project maintains separate migration guides, and the README is brief, deferring installation, usage, and customisation details to the external documentation site.

project readme (upstream, from github) — read inline

JavaScript Image Manipulation Program

An image processing library for Node and the browser written entirely in JavaScript, with zero native dependencies

Documentation · Getting Started · Playground

Installation

npm install jimp

Jimp 2.0 needs Node.js 22 or later.

Usage

import { Jimp } from "jimp";

const image = await Jimp.read("test.png");

image.resize({ w: 256 });

await image.write("test-small.png");

Methods like resize only change the image in memory, so call write (or getBuffer) to save the result. To start from a blank image, use new Jimp({ width, height, color }). To load an image you already have in memory, use await Jimp.fromBuffer(buffer). See Getting Started.

Read the full docs. Upgrading? See the v2 migration guide if you're on 1.x, or the v1 migration guide if you're on v0.

Custom Jimp

If you want to extend jimp or omit types or functions, create a custom Jimp with createJimp from @jimp/core. See the Custom Jimp guide.

  • Add file-types or switch encoder/decoders
  • Add or remove plugins (image manipulation methods)

Contributing

Please read the CONTRIBUTING documentation.

Security

To report a vulnerability, please follow the security policy. Don't open a public issue.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Andrew Lisowski

💻 🚇 📖 ⚠️

Oliver Moran

💻

strandedcity

💻

Edgar Hipp

💻

Corbin Crutchley

💻

Max G J Panas

💻

Michael Vogt

💻

Marcolino

💻

iwsfg

💻

arlecchino

💻

super-ienien

💻

Bennett Somerville

💻

Florian Barth

💻

Adam Rackis

💻

Aurélio A. Heckert

💻

Daniel Tian

💻

Jeff Bonnes

💻

Russley Shaw

💻

CodeLenny

💻

Sebastian Skałacki

💻

Turan Rustamli

💻

Vlad Turak

💻

ozelot379

💻

Adam Jones

💻

Ahmad Awais ⚡️

💻

Andrei Picus

💻

Andy Chou

💻

Arjun Khoosal

💻

Arman

💻

Autom3

💻

Bernardo Farah

💻

Boon

💻

BrianRosamilia

💻

Carter Bancroft

💻

Chad Banfield

💻

Charaf Salmi

💻

ciffelia

💻

Cody Schrank

💻

Cru Scanlan

💻

Curtis Autery

💻

Dan

💻

Daniel Holmes

💻 ⚠️

Daniel Tschinder

💻

Daniel Kimani

💻

Dara Kong

💻

Denis Bendrikov

💻

Dennis Bartlett

💻

Dominique Rau

💻

Eirik Birkeland

💻

Emily Marigold Klassen

💻

Emmanuel Bourgerie

💻

Endre Szabo

💻

Eric Rabil

💻

Gal Horowitz

💻

GlitchyPSI

💻

Gustavo Ramos Rehermann

💻

Han Kruiger

💻

Igor Borges

💻

Ivan Ganev

💻

Ivan Koprda

💻

iwasawafag

💻

Jake Champion

💻

James Harris

💻

James Ross

💻

Jeremy Katz

💻

Jeroen Claassens

💻

Johannes Goslar

💻

J D Carmichael

💻

John-Robert Yrjölä

💻

Jordan Danford

💻

Joseph

💻

Keith

💻

Keith Mitchell

💻

Kwyn Alice Meagher

💻

Lucy

💻

Marat Nagayev

💻

Marcel Mundl

💻

Mario Adrian

💻

Martin Trobäck

💻

Matt Mc

💻

Max

💻

Maël Nison

💻

Michael Elhadad

💻

Milos Bejda

💻

Mithgol

💻

Nicolas Giard

💻

Nam Bok Rodriguez

💻

Nate Cavanaugh

💻

Nik

💻

Olly Banham

💻

Pasi Eronen

💻

Pavel Volyntsev

💻

Peter Theill

💻

Philip Hannent

💻

Philipp Laube

💻

Rahil Kabani

💻

Rob Moore

💻

Ruben Bridgewater

💻

Sam Broner

💻

Sam MacPherson

💻

Sander Weyens

💻

Shen Yiming

💻

Stefan Lau

💻

Steve Bazyl

💻

Steve Mao

💻

Stuart Hinson

💻

Tom Bull

💻

TonyStr

💻

Laurent

💻

Vincent Dufrasnes

💻

Vladimir Starkov

💻

Vojtěch Štěpančík

💻

William Friesen

💻

Xiliang Chen

💻

Yonggang Luo

💻

austinfrey

💻

brownrw8

💻

Eliott C.

💻

d07RiV

💻

fabb

💻

fratzinger

💻

Guillem Cruz

💻

krudos

💻

mLuby

💻

mfuatnuroglu

💻

Matt Misbach

💻

netdown

💻

nopeless

💻

Oz Weiss

💻

popinguy

💻

qw3n

💻

rifflock

💻

s4tori

💻

sertal70

💻

xinbenlv

💻

xinnix

💻

彭君怡

💻

Andrey Kutejko

📖

Ihor Bodnarchuk

📖

Daniell

💻

MD KHAIRUL ISLAM

⚠️ 💻

JunkMeal

📖

Nicolas Morel

💻

Zach Stevenson

💻

AnotherPillow

📖

Dathan

💻

Juan Pablo Garcia Ripa

📖 🚇 ⚠️ 💻

Ben McCann

💻

Ilyas Landikov

💻

Bishwajeet Parhi

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Frequently asked questions

Is jimp free to use?

jimp is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does jimp do?

Image processing in pure JavaScript for Node.js and the browser, with zero native dependencies.

What is jimp written in?

jimp is primarily written in TypeScript. Its source is publicly available at https://github.com/jimp-dev/jimp, and it has 14,712 GitHub stars.