Media: Issues with animated and transparent gifs uploaded to WordPress #4890
Labels
Group: Media
Group: WordPress
Changes related to WordPress or Gutenberg integration
P3
Nice to have
Type: Bug
Something isn't working
Bug Description
As mentioned at #4599 (comment), there's a long-standing bug in WordPress core that causes thumbnails of animated gifs not to be animated. A second long-standing bug causes the thumbnails to lose their transparency.
Since we use image thumbnails for
srcset
, it causes animated gifs in stories to only be animated and transparent when the browser decides to use the full version.Suggested Fix
Users will likely not realize it's a WordPress bug though. For that reason, I suggest not providing the image thumbnails in the REST API for animated gifs. This will make the editor use the original file at all times.
Downside: potentially larger file size served to users.
Alternative: fix WordPress core bug.
Expected Behaviour
Animated gifs uploaded to WordPress should stay animated in stories.
Steps to Reproduce
Screenshots
Original, animated gif used:
Thumbnail used:
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria
Implementation Brief
The text was updated successfully, but these errors were encountered: