GIF extract frames
Try it interactively →POST /api/gif-extract-framesExtract every frame of an animated GIF as a base64 PNG. Returns frame timing (delay in ms) so you can rebuild the animation if needed.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| gif* | file | — | Input animated GIF. |
Response
Modes: json, binary. Cache: yes (24h TTL).
Code samples
Built from the dog example.
# Download or substitute the example input:
# curl -O https://xtract.bot/examples/gif-extract-frames/dog.gif
GIF=$(base64 -w0 < dog.gif)
curl -X POST https://api.xtract.bot/api/gif-extract-frames \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-Account-Id: $XTRACT_ACCOUNT_ID" \
-H "X-Api-Key: $XTRACT_API_KEY" \
-d '{
"gif": "'"$GIF"'"
}'