Make WordPress Core

Opened 6 years ago

Last modified 6 years ago

#51421 new defect (bug)

wp_get_missing_image_subsizes returns thumbnail sizes for animated GIFs

Reported by: ianmjones Owned by:
Priority: normal Milestone: Awaiting Review
Component: Media Version: 5.5.1
Severity: normal Keywords: needs-patch
Cc: Focuses:

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.


6 years ago

Note: See TracTickets for help on using tickets.