Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gifuct-js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gifuct-js

Easy to use efficient .GIF parsing in javascript

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
108K
decreased by-2.02%
Maintainers
1
Weekly downloads
 
Created

What is gifuct-js?

The gifuct-js package is a JavaScript library that allows you to decode and extract frames from GIF files. It is useful for developers who need to manipulate GIFs in the browser, such as extracting individual frames for further processing or analysis.

What are gifuct-js's main functionalities?

Decode GIF

This feature allows you to decode a GIF file and extract its frames. The code sample demonstrates how to use gifuct-js to parse a GIF buffer and decompress its frames, which can then be used for various purposes such as displaying or analyzing individual frames.

const { parseGIF, decompressFrames } = require('gifuct-js');
const gif = parseGIF(buffer);
const frames = decompressFrames(gif, true);

Extract Frames

This feature allows you to extract frames from a GIF and access their properties. The code sample shows how to iterate over the frames extracted from a GIF and log their dimensions and pixel data, which can be useful for custom rendering or processing.

const { parseGIF, decompressFrames } = require('gifuct-js');
const gif = parseGIF(buffer);
const frames = decompressFrames(gif, true);
frames.forEach(frame => {
  console.log(frame.dims, frame.patch);
});

Other packages similar to gifuct-js

Keywords

FAQs

Package last updated on 27 Aug 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc