Animation Parameters#
Convert and optimize animated GIFs to modern animated-webp format for better performance and smaller file sizes.
Animated WebP Overview#
What is Animated WebP?#
A modern alternative to GIF format that offers:
- 60% smaller file size compared to GIF
- Better visual quality with lossy compression
- Smooth playback with adjustable frame rate
- Wide browser support (Chrome, Firefox, Edge, Safari 14+)
Why Use Animated WebP?#
| Feature | GIF | Animated WebP |
|---|---|---|
| File Size | Large | 60% smaller ✅ |
| Quality | Limited colors | Full color ✅ |
| Transparency | ✅ | ✅ |
| Browser Support | Universal | Modern browsers ✅ |
| Loading Speed | Slow | Fast ✅ |
FPS (Frames Per Second)#
Description#
Control the frame rate of animated images.
Range#
- 1 to 60
- Default: Original frame rate
Usage#
?transform=format:animated-webp,fps:24
Recommended FPS Values#
| FPS | Use Case | File Size | Smoothness |
|---|---|---|---|
| 10-15 | Simple animations, loaders | Smallest | Adequate |
| 24 | Standard web animations | Medium | Smooth |
| 30 | High-quality animations | Large | Very smooth |
| 60 | Premium animations | Very large | Extremely smooth |
Examples#
Low FPS (smaller file):
?transform=format:animated-webp,fps:15,quality:80
Standard FPS (balanced):
?transform=format:animated-webp,fps:24,quality:85
High FPS (smooth):
?transform=format:animated-webp,fps:30,quality:85
Frame Range#
Description#
Extract a specific range of frames from the animation.
Format#
frameRange:start-end
Limits#
- start ≥ 0
- end > start
- Maximum 1000 frames
Usage#
First 50 frames:
?transform=format:animated-webp,frameRange:0-50
Frames 10 to 60:
?transform=format:animated-webp,frameRange:10-60
Use Cases#
- Extract specific animation segments
- Shorten long animations
- Create preview clips
- Reduce file size by limiting frames
Complete Examples#
Basic GIF to WebP Conversion#
?transform=format:animated-webp,quality:85
Result: 60% smaller file with same visual quality
Optimized for Web#
?transform=format:animated-webp,fps:24,quality:85
Best for: Standard web animations with good quality
Small File Size#
?transform=format:animated-webp,fps:15,quality:75
Best for: Loading indicators, simple animations
High Quality#
?transform=format:animated-webp,fps:30,quality:90
Best for: Premium content, hero animations
Extract Segment#
?transform=format:animated-webp,frameRange:0-30,fps:24
Best for: Previews, highlights from longer animations
Combining with Other Parameters#
Resize + Optimize#
?transform=w:600,format:animated-webp,fps:24,quality:85
Extract Region + Convert#
?transform=extract:10-10-80-80,format:animated-webp,fps:20
Full Optimization#
?transform=w:400,format:animated-webp,fps:20,frameRange:0-50,quality:80
Use Cases#
Website Loading Animation#
Requirements:
- Small file size
- Quick loading
- Smooth enough
Solution:
?transform=w:100,format:animated-webp,fps:15,quality:75
Social Media Share#
Requirements:
- Optimized for mobile data
- Good quality
- Standard duration
Solution:
?transform=w:600,format:animated-webp,fps:24,frameRange:0-100,quality:80
Hero Animation#
Requirements:
- High quality
- Smooth playback
- Eye-catching
Solution:
?transform=w:800,format:animated-webp,fps:30,quality:90
Tutorial GIF Optimization#
Requirements:
- Clear and readable
- Manageable file size
- Full animation
Solution:
?transform=w:800,format:animated-webp,fps:24,quality:85
Important Notes#
Requirements#
- Source format: Original must be GIF or animated format
- Format parameter: Must use
format:animated-webp - Static images: Cannot be converted to animated format
What Works#
✅ ?transform=format:animated-webp,fps:24
✅ ?transform=format:animated-webp,frameRange:0-50
✅ ?transform=w:600,format:animated-webp,fps:30What Doesn't Work#
❌ ?transform=format:jpeg,fps:24 // FPS only for animated-webp
❌ ?transform=format:png,frameRange:0-50 // frameRange only for animated-webpPerformance Comparison#
File Size Reduction#
| Original GIF | Animated WebP | Reduction |
|---|---|---|
| 5.2 MB | 2.1 MB | 60% |
| 10.8 MB | 4.3 MB | 60% |
| 15.0 MB | 6.0 MB | 60% |
Quality Comparison#
- Visual quality: Near-identical to original GIF
- Color support: Full RGB vs GIF's 256 colors
- Smoothness: Adjustable via fps parameter
Browser Support#
Supported Browsers#
- Chrome 32+ ✅
- Firefox 65+ ✅
- Edge 18+ ✅
- Safari 14+ (macOS 11+) ✅
- Opera 19+ ✅
Fallback Strategy#
<picture>
<source srcset="animation.webp" type="image/webp" />
<img src="animation.gif" alt="Animation" />
</picture>Next Steps#
- Download Control - Control download behavior
- Best Practices - Learn optimization strategies
- Use Cases - See more real-world examples
