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.