Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 878 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 878 Bytes

gif-extractor

Extract PNG frames from a set of GIF files, optionally upscaling them to a specific size (with nearest-neighbour scaling).

Online demo: https://gif-extractor.netlify.app/

Approach

This uses gifuct-js to extract frames, and coalesces them into a raw ArrayBuffer. This is then encoded with fast-png, and then saved to a folder on disk using Chrome's File System API.

Build & Run Locally

Clone, cd into this repo, then:

# install dependencies
npm install

# run local dev server
npm run dev

# or build website to disk
npm run build

Also see

  • giftool - to turn a sequence of frames into a GIF

License

MIT, see LICENSE.md for details.