Animategif – Embed animated GIF files in PDF documents, decoded in pure Lua
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).
| Sources | /macros/latex/contrib/animategif |
| Documentation | |
| Support | |
| Repository | |
| Version | 1.0.0 2026-10-06 |
| Licenses | The LaTeX Project Public License 1.3c |
| Copyright | 2026 Ali Ramlaoui |
| Maintainer | Ali Ramlaoui |
| Contained in | TeX Live as animategif |
| Topics | Graphics include Graphics motion Use LuaTeX |
Download the contents of this package in one zip archive (159.9k).
Announcements
Suggestions
Maybe you are interested in the following packages as well.
Community Comments