GIF Maker API
Category: media
Convert video clips to animated GIFs with customizable FPS and size. Runs entirely in the browser using FFmpeg.wasm.
Endpoint
N/A
Browser API (FFmpeg.wasm)
No Server API
Response
Content-Type: N/A
This tool creates GIFs from video in the browser using FFmpeg.wasm. No server-side API is available.
// Browser-only: processed via FFmpeg.wasm
cURL Example
# No cURL equivalent — this tool uses FFmpeg.wasm in the browser
Code Samples
// GIF creation using FFmpeg.wasm
import { FFmpeg } from '@ffmpeg/ffmpeg';
const ffmpeg = new FFmpeg();
await ffmpeg.load();
await ffmpeg.writeFile('input.mp4', videoData);
await ffmpeg.exec(['-i', 'input.mp4', '-vf',
'fps=10,scale=480:-1:flags=lanczos',
'-loop', '0', 'output.gif']);
const gifData = await ffmpeg.readFile('output.gif');
# For server-side GIF creation:
import subprocess
subprocess.run(['ffmpeg', '-i', 'input.mp4',
'-vf', 'fps=10,scale=480:-1', 'output.gif'])
// For server-side GIF creation:
ProcessBuilder pb = new ProcessBuilder(
"ffmpeg", "-i", "input.mp4",
"-vf", "fps=10,scale=480:-1", "output.gif");
pb.start().waitFor();