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

@n.see/gif-parser

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@n.see/gif-parser

gif-parser

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gif-parser

gif文件流组成

gif文件流

gif文件流

文件流说明

安装
npm install @n.see/gif-parser --save

使用
import { Parser, ExportBlockList } from '@n.see/gif-parser';
const parser = new Parser(arrayBuffer);

// 获取gif图片尺寸
const [width: number, height: number] = parser.getSize();

// 获取gif图片流所有模块数据
const blockList: ExportBlockList = parser.getBlockList();

// 获取gif图片流模块数据
const blockItem: ExportBlockItem = parser.getBlockItem(type: ExportBlockItemType)

// 处理后的数据
parser.export();
// 获取gif图片每帧数据(处理后的数据,需调用“parser.export()”)
const frames: ExportBlockItem = parser.getFrames()

// 获取gif图片流模块数据(处理后的数据,需调用“parser.export()”)
const dataList: ExportBlockList = parser.getDataList()


功能
  • getSize()
  • getBlockList()
  • getDataList()
  • getFrames()
  • getBlockItem(type: ExportBlockItemType)

Keywords

FAQs

Package last updated on 30 Oct 2022

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