filter · Image filters
Animated WebP (convert_to_webp_animated)
- Category:
- Image
- CoreFilters:
- No
- OptimizeForBandwidth:
- No
- Risk:
- Test first
convert_to_webp_animated converts animated GIF images to animated WebP. Not a CoreFilter.
When to use it
- Not in CoreFilters: it runs only when you enable it by name.
- Risk rating on these docs: Test first.
Risks
convert_to_webp_animatedcan produce large files for complex animations. Verify output sizes.
Configuration
Enable it in the module configuration, at server, virtual-host or location scope:
Apache
ModPagespeedEnableFilters convert_to_webp_animatednginx
pagespeed EnableFilters convert_to_webp_animated;IIS (pagespeed.config)
pagespeed EnableFilters convert_to_webp_animated| Parameter | Default | Description |
|---|---|---|
ProgressiveJpegMinBytes | 10240 | Minimum JPEG size before converting to progressive |
WebpRecompressionQuality | 80 | Quality for lossy WebP conversion |
WebpAnimatedRecompressionQuality | 70 | Quality for animated WebP conversion |
Scoping, ForbidFilters and the thresholds filters read:
Choosing filters
.
Frequently asked questions
- What does the convert_to_webp_animated filter do?
convert_to_webp_animatedconverts animated GIF images to animated WebP. Not a CoreFilter.- Is convert_to_webp_animated enabled by default?
- No.
convert_to_webp_animatedis not in CoreFilters, the default RewriteLevel; it runs only when you enable it by name withEnableFilters. - How do I enable convert_to_webp_animated on Apache and nginx?
- Add
ModPagespeedEnableFilters convert_to_webp_animatedon Apache orpagespeed EnableFilters convert_to_webp_animated;on nginx. On IIS, addpagespeed EnableFilters convert_to_webp_animatedto pagespeed.config.
Related filters
- convert_gif_to_png — Convert GIF to PNG
- convert_jpeg_to_progressive — Progressive JPEG
- convert_jpeg_to_webp — Convert JPEG to WebP
- convert_png_to_jpeg — Convert PNG to JPEG
- convert_to_webp_lossless — Lossless WebP
- convert_jpeg_to_avif — Convert JPEG to AVIF
- convert_to_avif_animated — Animated AVIF
- convert_to_avif_lossless — Lossless AVIF
This page is drawn from the convert_to_webp_animated entry on Image filters. Every filter in one table: PageSpeed filters.