Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 3, 2024 via pnpm

jimp 0.22.10

An image processing library written entirely in JavaScript (i.e. zero external or native dependencies)
Package summary
Share
2
issues
1
critical severity
license
1
1
moderate severity
vulnerability
1
6
licenses
79
MIT
3
ISC
2
BSD-3-Clause
3
other licenses
N/A
1
(MIT AND Zlib)
1
BSD-2-Clause
1
Package created
13 Sep 2014
Version published
26 Jul 2023
Maintainers
2
Total deps
87
Direct deps
4
License
MIT

Issues

2

1 critical severity issue

critical
Recommendation: Check the package code and files for license information
via: @jimp/custom@0.22.12 & others
Collapse
Expand

1 moderate severity issue

moderate
Recommendation: Upgrade to version 3.7.1 or later
via: @jimp/plugins@0.22.12
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
79 Packages, Including:
@jimp/bmp@0.22.12
@jimp/core@0.22.12
@jimp/custom@0.22.12
@jimp/gif@0.22.12
@jimp/jpeg@0.22.12
@jimp/plugin-blit@0.22.12
@jimp/plugin-blur@0.22.12
@jimp/plugin-circle@0.22.12
@jimp/plugin-color@0.22.12
@jimp/plugin-contain@0.22.12
@jimp/plugin-cover@0.22.12
@jimp/plugin-crop@0.22.12
@jimp/plugin-displace@0.22.12
@jimp/plugin-dither@0.22.12
@jimp/plugin-fisheye@0.22.12
@jimp/plugin-flip@0.22.12
@jimp/plugin-gaussian@0.22.12
@jimp/plugin-invert@0.22.12
@jimp/plugin-mask@0.22.12
@jimp/plugin-normalize@0.22.12
@jimp/plugin-print@0.22.12
@jimp/plugin-resize@0.22.12
@jimp/plugin-rotate@0.22.12
@jimp/plugin-scale@0.22.12
@jimp/plugin-shadow@0.22.12
@jimp/plugin-threshold@0.22.12
@jimp/plugins@0.22.12
@jimp/png@0.22.12
@jimp/tiff@0.22.12
@jimp/types@0.22.12
@jimp/utils@0.22.12
@tokenizer/token@0.3.0
@types/node@16.9.1
any-base@1.1.0
base64-js@1.5.1
bmp-js@0.1.0
buffer-equal@0.0.1
buffer@5.7.1
dom-walk@0.1.2
file-type@16.5.4
gifwrap@0.10.1
global@4.4.0
image-q@4.0.0
is-function@1.0.2
isomorphic-fetch@3.0.0
jimp@0.22.10
load-bmfont@1.4.1
mime@1.6.0
min-document@2.19.0
node-fetch@2.7.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
inherits@2.0.4
pixelmatch@4.0.2
sax@1.3.0

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
ieee754@1.2.1
jpeg-js@0.4.4

N/A

N/A
1 Packages, Including:
exif-parser@0.1.12

(MIT AND Zlib)

Permissive
1 Packages, Including:
pako@1.0.11

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
webidl-conversions@3.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of jimp 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@jimp/custom0.22.1234.27 kBMIT
prod peer
1
@jimp/plugins0.22.1220.4 kBMIT
prod
1
1
@jimp/types0.22.128.35 kBMIT
prod
1
regenerator-runtime0.13.118.32 kBMIT
prod

Visualizations

Frequently Asked Questions

What does jimp do?

Jimp, or "JavaScript Image Manipulation Program", is an image processing library for Node built entirely in JavaScript. It is designed to handle various image files, including JPEG, PNG, BMP, TIFF, and GIF. It requires zero external or native dependencies making it popular for its simplicity and ease-of-use.

How do you use jimp?

Jimp is used by first installing it in your project via npm with the command npm install --save jimp. Once installed, you can require it in your JavaScript file and use it to read and manipulate images. You can resize, adjust quality, set to greyscale, and write the output to a new JPEG image.

Here is an example of its usage with callback:

var Jimp = require("jimp");

// Open a file called "lenna.png"
Jimp.read("lenna.png", (err, lenna) => {
  if (err) throw err;
  lenna
    .resize(256, 256) // resize
    .quality(60) // set JPEG quality
    .greyscale() // set greyscale
    .write("lena-small-bw.jpg"); // save
});

And here is an example using promises:

Jimp.read("lenna.png")
  .then((lenna) => {
    return lenna
      .resize(256, 256) // resize
      .quality(60) // set JPEG quality
      .greyscale() // set greyscale
      .write("lena-small-bw.jpg"); // save
  })
  .catch((err) => {
    console.error(err);
  });

If you're utilizing TypeScript, you would import the library with ES6 default import syntax:

import Jimp from "jimp";

And for those using a web bundler such as webpack, rollup, or parcel, you can benefit by utilizing the module build of Jimp:

import Jimp from "jimp/es";

Where are the jimp docs?

The documentation for Jimp can be found directly in the repository on GitHub. The URL is: https://github.com/jimp-dev/jimp. The readme file in this repository also contains extensive information and code examples for using the Jimp package and its associated methods and options.