Skip to main content

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_animated can 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_animated

nginx

pagespeed EnableFilters convert_to_webp_animated;

IIS (pagespeed.config)

pagespeed EnableFilters convert_to_webp_animated
ParameterDefaultDescription
ProgressiveJpegMinBytes10240Minimum JPEG size before converting to progressive
WebpRecompressionQuality80Quality for lossy WebP conversion
WebpAnimatedRecompressionQuality70Quality 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_animated converts animated GIF images to animated WebP. Not a CoreFilter.
Is convert_to_webp_animated enabled by default?
No. convert_to_webp_animated is not in CoreFilters, the default RewriteLevel; it runs only when you enable it by name with EnableFilters.
How do I enable convert_to_webp_animated on Apache and nginx?
Add ModPagespeedEnableFilters convert_to_webp_animated on Apache or pagespeed EnableFilters convert_to_webp_animated; on nginx. On IIS, add pagespeed EnableFilters convert_to_webp_animated to pagespeed.config.

This page is drawn from the convert_to_webp_animated entry on Image filters. Every filter in one table: PageSpeed filters.

Search