wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_generate_animated_image_subsizes › WordPress Filter Hooks

Seit7.2.0
Veraltetn/v
› apply_filters( 'wp_generate_animated_image_subsizes', true )
Parameter:
  • () generate_animated_image_subsizes Whether to preserve animation in image sub-sizes. Default true.
    Erforderlich: Ja
Definiert in:
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.




Quellcode

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