New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert user uploaded animated GIFs to videos #7232
Comments
This is an interesting read - https://github.com/cyburgee/ffmpeg-guide |
Here's a proof-of-concept demo: GIF.2.Video.movPoster generation works too, it's just not reflected in the media library yet. The underlying data structure for GIF resources needs to be adapted a little bit, but it looks really promising already. |
Is the poster image the originally uploaded image? |
In my PoC the poster image is a freshly generated, still image of the video's first frame. Just using the GIF would negate any benefits of using videos in the first place, because the browser would then download a large GIF and a video, which would just make things worse. |
@csossi Well spotted! Since GIFs are technically images to the user's eyes, there's no poster image section under "Accessbility" for GIFs. This is the same behavior as today, when inserting a GIF from Tenor for example. So this is expected behavior. |
Then all is well, @swissspidy Verified in QA |
Feature Description
Since we now have all the pieces to do use FFmpeg in the editor and force cross-origin isolation, it would totally be possible to optimize a user-uploaded animated GIF by automatically turning it into an MP4. In the editor this would use the "hidden" GIF element we already use for Tenor GIFs (which are also actually videos).
Not only would it be possible, but it should also be quite trivial to implement:
During upload:
Existing images:
Alternatives Considered
This might not be a high priority since not many users might be uploading animated GIFs to WordPress / stories.
Additional Context
Related: WordPress/gutenberg#19730
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: