Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
A node.js library that leverages ImageMagick to turn images into RGBA arrays (Uint8Arrays).
A node.js library that leverages ImageMagick to turn images into RGBA arrays (Uint8Arrays).
npm install im-decode
im-decode
requires ImageMagick CLI tools to be installed. There's plenty of ways to install ImageMagick, choose what's right for you.
var decode = require('im-decode');
decode(imageBuffer, function(err, rgbaArray) {
// do something
});
Buffer
Array
of dimensions in the form [w, h], i.e. [640, 480]Function(Error, Uint8Array)
Returns a Uint8Array
when provided an image as a Buffer
. Passing in a dimensions Array
is optional, but will provide a slight speed improvement (~7% speed increase for 640x480 images was seen in testing). The speed improvement is due to the nature of knowing the size of the end result Buffer
vs continually creating new Buffers
of ever increasing size. At least that's my assumption without diving into it any deeper.
FAQs
A node.js library that leverages ImageMagick to turn images into RGBA arrays (Uint8Arrays).
The npm package im-decode receives a total of 27 weekly downloads. As such, im-decode popularity was classified as not popular.
We found that im-decode demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.