jimp-dev/jimp

Public

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

  • Stars14.7k+35 tuần này
  • Forks787
  • Watchers133
  • Issues0
  • Ngày tạo14/09/2014
  • Cập nhật gần nhất30/11/2026
  • Ngôn ngữTypeScript
  • Giấy phépMIT
README.md73.5 KBRaw
Jimp

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

📖

Shrusti-pk

⚠️ 💻

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

Nội dung README thuộc về jimp-dev và cộng đồng đóng góp, giấy phép MIT. Nguồn: github.com/jimp-dev/jimp