Scan your whole stack
Are you using @jimp/js-png?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.1.0
@jimp/js-png was last scanned on 24 Nov 2026 at version 2.1.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.1.0 LATEST | 24 Nov 2026 | No rules fired |
| 2.0.0 | 24 Nov 2026 | No rules fired |
| 1.7.0 | 22 Nov 2026 | No rules fired |
Findings for v2.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 2.1.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The PNG codec is @jimp/pngjs, Jimp's fork of
pngjs. It works in browsers without Node.js
polyfills.
Jimp.read decodes every kind of PNG to 8 bits per channel. For an animated
PNG (APNG) it reads the image viewers without APNG support show. Use
Jimp.readFrames for every frame:
const { frames, loop } = await Jimp.readFrames("animation.png");
Each frame is the whole image at that point of the animation, with its
delay in milliseconds. loop is how many times the animation repeats after
it first plays: 0 for forever, null to play once.
Pass checkCRC: false to read files with wrong chunk checksums:
const image = await Jimp.read(buffer, { "image/png": { checkCRC: false } });
Pass PNG options to getBuffer, getBase64 or write:
import { Jimp, JimpMime, PNGColorType, PNGFilterType } from "jimp";
const image = await Jimp.read("test.png");
const buffer = await image.getBuffer(JimpMime.png, {
deflateLevel: 6,
filterType: PNGFilterType.NONE,
colorType: PNGColorType.COLOR,
});
deflateLevel - the deflate level used when saving (default is 9)deflateStrategy - the deflate strategy used when saving (default is 3)filterType - a PNGFilterType (default is PNGFilterType.AUTO, or PNGFilterType.NONE for palette and 1, 2 and 4-bit images)colorType - a PNGColorType (default is picked from the image, see below)bitDepth - 1, 2, 4, 8 or 16 (default is picked from the image)Without colorType, Jimp writes the smallest colour type that keeps every pixel exactly:
| Image | Colour type |
|---|---|
| Every pixel opaque and grey | PNGColorType.GRAYSCALE, at 1, 2, 4 or 8 bits |
| 256 colours or fewer | PNGColorType.PALETTE, at 1, 2, 4 or 8 bits |
| Every pixel opaque | PNGColorType.COLOR |
| Every pixel grey, some transparent | PNGColorType.GRAYSCALE_ALPHA |
| Anything else | PNGColorType.COLOR_ALPHA |
A pixel is grey when its red, green and blue values are equal. Grey images are written with fewer than 8 bits when every level is one that bit depth stores exactly, e.g. only black and white for 1 bit. Pass colorType to always write a particular type.
To write a PNG without an alpha channel (image.rgba(false) in Jimp v0), set colorType to PNGColorType.COLOR:
const buffer = await image.getBuffer(JimpMime.png, {
colorType: PNGColorType.COLOR,
});
Transparent pixels are blended onto a white background. inputHasAlpha: false still works but is deprecated. Use colorType instead.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.