animategif__doc
Embed animated GIF files in PDF documents, decoded in pure Lua
- Version:
- 1.0.0
- Copyright:
- Ali Ramlaoui
- License:
- lppl1.3c
- Packaged on:
- 10/17/2026 11:57:55
- Number of files:
- 3
- Size on disk:
- 185.43 kB
The package provides \animategif{file.gif}, which embeds an animated GIF as a PDF animation. The GIF is decoded in pure Lua – in-process with LuaLaTeX, or with texlua through shell escape with pdfLaTeX and XeLaTeX – so no external programs such as ImageMagick are needed. Frames are written as compact PNG images, storing only the pixels that change between frames, and cached. The animate package then embeds them with a timeline that follows the GIF's per-frame delays, disposal methods, transparency and loop count. Options select frame ranges, change the speed or number of plays, downsample, or include a single frame as a still image (automatically in beamer handouts).