About this tool
Joins several still pictures into one animated GIF, like a flip book where each picture is one frame. You can choose how long each frame shows, how many times it repeats (or forever), and whether to play it in reverse or skip frames. You need between 2 and 60 pictures, and they play in the order you upload them.
For example, you turn five photos of a new product into a short looping slideshow to put on your website.
How to use it
- Choose this tool.
- Add your pictures with Upload or drag and drop, in the order you want them to play (2 to 60 pictures).
- Set how long each picture shows and how many times it loops.
- Press Generate.
- Download your GIF.
What you get back
You get one new animated GIF file that you can download and share.
GOOD TO KNOW
Frames are resized (cover) to the first frame size. The combined frame pixel budget is 50,000,000 px.
TEST IT LIVE
Try Build Animated GIF 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/animate
Tool ID
images.animate
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/animate" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'images=@photo.jpg' \
-F 'delayMs=100' \
-F 'loopCount=0' \
-F 'format=gif'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.animate({
"images": 'photo.jpg',
"delayMs": 100,
"loopCount": 0,
"format": "gif"
});
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()->animate([
'images' => 'photo.jpg',
'delayMs' => 100,
'loopCount' => 0,
'format' => 'gif',
]);
echo $result->requestId;More in Images
