Make WordPress Core


Ignore:
Timestamp:
10/18/2026 10:36:44 PM (32 hours ago)
Author:
adamsilverstein
Message:

Media: Generate animated image sub-sizes by default.

Fix an issue where sub-sizes of animated image uploads were static first-frame images, as GD and Imagick flatten animated images when resizing. When client-side media processing is active, generated images now retain animations.

Add a wp_generate_animated_image_subsizes filter (boolean, default true) so the client pipeline can keep or drop the animation in sub-sizes. The client-side consumption ships via the Gutenberg package updates in ​https://github.com/WordPress/gutenberg/pull/80385.

Fixes #65656, #28474.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/site-editor.php

    r62846 r64490  
    221221                array(
    222222                        'description',
     223                        'generate_animated_image_subsizes',
    223224                        'gmt_offset',
    224225                        'home',
Note: See TracChangeset for help on using the changeset viewer.