Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@jimp/js-png

Latest version: v2.1.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: alisowski, oliver.moran
14,677 Stars
786 Forks
3 Versions
11.3M Downloads
TypeScript Repo language

Scan summary

@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.

  • Releases: 3 versions, all published within 3 days (22–24 Nov 2026).
  • Findings: No rules fired in version 2.1.0.
  • Downloads: 11,255,616 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 2.1.0

Findings

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.

README

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.

Reading

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 } });

Encoding options

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)
Default colour type

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.

Removing the alpha channel

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.

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @jimp/js-png

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229