Opened 4 years ago
Last modified 4 years ago
#51421 new defect (bug)
wp_get_missing_image_subsizes returns thumbnail sizes for animated GIFs
Reported by: | ianmjones | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.5.1 |
Component: | Media | Keywords: | needs-patch |
Focuses: | Cc: |
Description
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.
Change History (1)
This ticket was mentioned in Slack in #core-media by antpb. View the logs.
4 years ago
Note: See
TracTickets for help on using
tickets.