Gathering detailed insights and metrics for save-pixels-jpeg-js-upgrade
Gathering detailed insights and metrics for save-pixels-jpeg-js-upgrade
Gathering detailed insights and metrics for save-pixels-jpeg-js-upgrade
Gathering detailed insights and metrics for save-pixels-jpeg-js-upgrade
npm install save-pixels-jpeg-js-upgrade
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
89 Stars
65 Commits
28 Forks
7 Watchers
1 Branches
16 Contributors
Updated on Feb 22, 2024
Latest Version
2.3.4-jpeg-js-upgrade.0
Package Id
save-pixels-jpeg-js-upgrade@2.3.4-jpeg-js-upgrade.0
Size
2.98 kB
NPM Version
5.1.0
Node Version
8.1.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
WILL NOT BE MAINTAINED; published fork pending update of main save-pixels package.
Saves an ndarray to an image.
1var zeros = require("zeros") 2var savePixels = require("save-pixels") 3 4//Create an image 5var x = zeros([32, 32]) 6x.set(16, 16, 255) 7 8//Save to a file 9savePixels(x, "png").pipe(process.stdout)
This writes the foll owing image to stdout:
<img src=https://raw.github.com/mikolalysenko/save-pixels/master/example/example.png>
npm install save-pixels
require("save-pixels")(array, type[, options])
Saves an ndarray as an image with the given format
array
is an ndarray
of pixels. Assumes that shape is [width, height, channels]
type
is the type of the image to save. Currently supported formats:
"jpeg"
, "jpg"
- Joint Photographic Experts Group format"gif"
- Graphics Interchange Format"png"
- Portable Network Graphics format"canvas"
- A canvas elementoptions
is an object that alters saving behavior
quality
is the Number
to use for saved image quality
"jpeg"
imageReturns A stream that you can pipe to serialize the result, or a canvas element if the type
is "canvas"
.
(c) 2013 Mikola Lysenko. MIT License
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 6/24 approved changesets -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More