A small, fast Go CLI tool that extracts frames from an animated GIF and saves them as PNG files.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-03-26 11:24:01 -04:00
go.mod initial commit 2025-12-13 02:21:04 -05:00
main.go initial commit 2025-12-13 02:19:57 -05:00
README.md Update README.md 2026-03-26 11:24:01 -04:00

GIF Frame Extractor (Go)

WARN-LLM GENERATED

A small, fast Go CLI tool that extracts frames from an animated GIF and saves them as PNG files.

It supports:

  • Raw frame extraction (exact stored frames)
  • Composited frame rendering (what you visually see when the GIF plays)
  • Shorthand and long CLI flags
  • Correct handling of GIF disposal methods

Features

  • 🚀 Fast and dependency-free (pure Go standard library)
  • 🖼️ Export each GIF frame as a PNG
  • 🎞️ Correct visual compositing using GIF disposal rules
  • 🧩 Optional raw frame dumping (no compositing)
  • 🔤 Short and long command-line flags

Installation

Build from source

git clone https://github.com/mr0xb/gif2png.git
cd gif2png
go build -o gif2png