Scan your whole stack
From OX Research Newsroom
Are you using @jimp/plugin-threshold?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.1.0
@jimp/plugin-threshold 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.
This is useful as a simplified method for processing scanned drawings, signatures, etc
threshold greyscales the image (unless autoGreyscale: false), keeps
pixels whose value is below max and sets the rest to replace (default 255).
With autoGreyscale: false the image keeps its colors and each red, green and
blue channel is compared with max and replaced on its own.
import { Jimp } from "jimp";
const image = await Jimp.read("scan.png");
image.threshold({ max: 150 });
max automaticallyPass max: "otsu" to pick max from the image with
Otsu's method, which finds
the split between dark and light pixels that best separates the two groups.
image.threshold({ max: "otsu" });
To see or reuse the level it picks, call otsuThreshold. It takes the same
autoGreyscale option and returns a number you can pass as max:
import { Jimp, otsuThreshold } from "jimp";
const level = otsuThreshold(image);
image.threshold({ max: level });
How the level is computed:
autoGreyscale: false the image should
already be grey (like OpenCV, which only runs Otsu on single-channel
images), and it reads the red channel.threshold_otsu and
OpenCV's THRESH_OTSU report, because those return the highest dark value
while threshold keeps pixels strictly below max.threshold keeps every pixel
below 255 unchanged.See Getting Started to read an image, change it and save the result with write or getBuffer.
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.