wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_generate_animated_image_subsizes › WordPress Filter Hooks

Since7.2.0
Deprecatedn/a
› apply_filters( 'wp_generate_animated_image_subsizes', true )
Parameters:
  • () generate_animated_image_subsizes Whether to preserve animation in image sub-sizes. Default true.
    Required: Yes
Defined at:
Codex:

Filters whether client-side media processing preserves animation in image sub-sizes.

By default, sub-sizes of animated GIF and WebP images retain animation, including cropped sizes. Return false to generate static sub-sizes using only the first frame, reducing processing time in the browser. This setting applies only to client-side media processing. Server-side processing continues to generate static sub-sizes.




Source

$available['generate_animated_image_subsizes'] = (bool) apply_filters( 'wp_generate_animated_image_subsizes', true );