Skip to content
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

Prefer webp over gif #167

Open
balupton opened this issue Jul 28, 2023 · 0 comments
Open

Prefer webp over gif #167

balupton opened this issue Jul 28, 2023 · 0 comments

Comments

@balupton
Copy link

balupton commented Jul 28, 2023

GitHub supports videos inside readmes:
https://github.blog/2021-05-13-video-uploads-available-github/
https://stackoverflow.com/a/4279746/130638
https://stackoverflow.com/a/14945782/130638

From my understanding gifs are huge in size, and have often been subtly replaced by other formats by social media networks because of this. I'm not sure if github does the same edge optimisations as other sites do, or if terminal usage with limited colours and frames are the better for gifs than other formats.

Update, seems videos in readmes don't autoplay.

Update 2, seems animated png died out (didn't animate on ios safari), however animated webp seems to have won:
https://developers.google.com/speed/webp/faq

Update 3, animated webp support is already supported by github as it just delegates images to browser support:
https://github.com/TomasHubelbauer/markdown-webp

Update 4, seems webp support needs to be added to vhs first:
charmbracelet/vhs#50

@balupton balupton changed the title Prefer videos over gif Prefer webp over gif Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant