
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
concat-frames
Advanced tools
Concatenates a pixel-stream into an array of frame objects. This is useful for testing purposes, and cases where you want an entire image frame at once, rather than a stream.
npm install concat-frames
The following example produces an array of frames from an animated GIF using gif-stream.
var concat = require('concat-frames');
var GIFDecoder = require('gif-stream/decoder');
fs.createReadStream('in.gif')
.pipe(new GIFDecoder)
.pipe(concat(function(frames) {
// frames is an array of frame objects.
// each one has a `pixels` property containing
// the raw RGB pixel data for that frame, as
// well as the width, height, etc.
}));
MIT
FAQs
Concatenate a pixel-stream into an array of frames
The npm package concat-frames receives a total of 744 weekly downloads. As such, concat-frames popularity was classified as not popular.
We found that concat-frames 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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.