jimp

An image processing library written entirely in JavaScript.

jimp downloads jimp version

jimp类似的npm包:

npm下载趋势

3 年
🌟 在 jimp 的 README.md 中显示实时使用量图表,只需复制下面的代码。
## Usage Trend
[![Usage Trend of jimp](https://npm-compare.com/img/npm-trend/THREE_YEARS/jimp.png)](https://npm-compare.com/jimp#timeRange=THREE_YEARS)
🌟 在 jimp 的 README.md 中显示 GitHub stars 趋势图表,只需复制下面的代码。
## GitHub Stars Trend
[![GitHub Stars Trend of jimp](https://npm-compare.com/img/github-trend/jimp.png)](https://npm-compare.com/jimp)

统计详情

npm包名称
下载量
Stars
大小
Issues
发布时间
License
jimp2,114,224-4.03 MB-1 年前MIT

jimp的README

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