Extract GIF from video
โChatterโ (a team messaging app like Slack) lets users turn video moments into reaction GIFs.
API
ittybit animation \
-i https://chatter-app.com/clips/funny-moment.mp4 \
--format gif \
--start 3 \
--end 6 \
--width 320const job = {
input: 'https://chatter-app.com/clips/funny-moment.mp4',
kind: 'animation',
options: {
format: 'gif',
start: 3,
end: 6,
width: 320,
},
};
const res = await fetch('https://api.ittybit.com/jobs', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.ITTYBIT_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify(job),
});
const data = await res.json();import requests
job = {
"input": "https://chatter-app.com/clips/funny-moment.mp4",
"kind": "animation",
"options": {
"format": "gif",
"start": 3,
"end": 6,
"width": 320,
},
}
res = requests.post(
"https://api.ittybit.com/jobs",
headers={"Authorization": f"Bearer {api_key}"},
json=job,
)
data = res.json()JOB='{
"input": "https://chatter-app.com/clips/funny-moment.mp4",
"kind": "animation",
"options": {
"format": "gif",
"start": 3,
"end": 6,
"width": 320
}
}'
curl -X POST https://api.ittybit.com/jobs \
-H "Authorization: Bearer $ITTYBIT_API_KEY" \
-H "Content-Type: application/json" \
-d "$JOB" This extracts a 3-second animated GIF starting at 3 seconds. Keep segments short and dimensions small โ GIFs get large fast.
CLI
ittybit animation \
-i funny-moment.mp4 \
-o reaction.gif \
--start 3 \
--end 6 \
--width 320
Small and sharp
GIF files are uncompressed per frame. Keep them small:
ittybit animation \
-i clip.mp4 \
-o reaction.gif \
--start 5 \
--end 8 \
--width 240 \
--fps 8
Consider WebP instead
WebP supports animation and produces much smaller files than GIF:
ittybit animation \
-i clip.mp4 \
-o clip.webp \
--start 5 \
--end 10 \
--width 320
If your platform supports WebP (most modern apps do), prefer it over GIF.