jimp
An image processing library written entirely in JavaScript.
🌟 在 jimp 的 README.md 中顯示即時使用量圖表,只需複製下面的代碼。## Usage Trend
[](https://npm-compare.com/jimp#timeRange=THREE_YEARS)
🌟 在 jimp 的 README.md 中顯示 GitHub stars 趨勢圖表,只需複製下面的代碼。## GitHub Stars Trend
[](https://npm-compare.com/jimp)
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