[wp-trac] [WordPress Trac] #51421: wp_get_missing_image_subsizes returns thumbnail sizes for animated GIFs
WordPress Trac
noreply at wordpress.org
Wed Sep 30 14:27:32 UTC 2020
#51421: wp_get_missing_image_subsizes returns thumbnail sizes for animated GIFs
--------------------------+-----------------------------
Reporter: ianmjones | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 5.5.1
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-----------------------------
While thumbnails are not created for animated GIFs to avoid the problem of
users picking a thumbnail size to insert into their content and
unexpectedly getting a static image instead of an animated GIF, they are
generated for static GIFs.
The `wp_get_missing_image_subsizes` function however recognizes animated
GIFs as an image format that can have subsizes generated, and so returns a
list of missing thumbnail sizes that will never be created.
This causes problems for various plugins when checking whether all
required thumbnails exist before commencing processing the GIF etc.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51421>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list