Free plan
Extract Frames
Save the frames of an animated GIF as separate pictures
About this tool
Takes an animated GIF or WebP, or a TIFF with several pages, and saves each frame or page as its own picture. You can pick only certain frames, such as 1 and 3 to 5, and choose PNG, JPEG or WebP for the results. It takes one file at a time.
For example, you pull the single frames out of a GIF to use one as a still image.
How to use it
- Choose this tool.
- Add one animated picture or multi-page TIFF with Upload or drag and drop.
- Choose which frames you want, or leave it empty for all.
- Choose the file type, then press Generate.
- Download the frames.
What you get back
You get each chosen frame as its own picture, which you can download, usually together in one ZIP file.
TEST IT LIVE
Try Extract Frames in the Studio
One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Family
Images
Plan
Free
Method
POST
Endpoint
/v1/images/frames
Tool ID
images.frames
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Image
For developers
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/images/frames" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'images=@photo.jpg' \
-F 'format=png' \
-F 'output_bundle=zip' \
-F 'response=url'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.frames({
"images": 'photo.jpg',
"format": "png",
"output_bundle": "zip",
"response": "url"
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->frames([
'images' => 'photo.jpg',
'format' => 'png',
'output_bundle' => 'zip',
'response' => 'url',
]);
echo $result->requestId;More in Images
