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

Use Cloudinary to convert animated GIFs to videos #33

Open
nhoizey opened this issue Dec 21, 2017 · 6 comments
Open

Use Cloudinary to convert animated GIFs to videos #33

nhoizey opened this issue Dec 21, 2017 · 6 comments

Comments

@nhoizey
Copy link
Owner

nhoizey commented Dec 21, 2017

https://twitter.com/nhoizey/status/943789684769067009

@eeeps
Copy link

eeeps commented Dec 21, 2017

Note that Cloudinary is working on making f_auto smart about https://calendar.perfplanet.com/2017/animated-gif-without-the-gif/ – so that, from one URL, browsers that support MP4s-in-<img> would get MP4s, while those that don't would still get Gifs.

Functionality like this would simplify work within jekyll-cloudinary a lot, and the resulting <img> would perform a bit better than a <video> would (because the <img src> gets preloaded, and the <video src> load takes 1+ extra round trips to support buffered loading). But until other browsers implement video-in-<img>, the trade-off of using <img> instead of <video> right now is that you'll still be sending Gifs to a bunch of people (whereas with <video autoplay loop muted>, everybody could get an H.264 today.)

Noting official yet, Cloudinary's plans could change, and maybe this is not a trade-off that makes sense in this context right now – but it’s something to be aware of at least.

@nhoizey
Copy link
Owner Author

nhoizey commented Jul 23, 2018

@eeeps hi Eric, would you still recommend use <video>, a few months later?

@eeeps
Copy link

eeeps commented Jul 31, 2018

<img src='mp4'> status:

  • Cloudinary still hasn’t deployed f_auto,fl_animatedmp4s to the general public.
  • Blink seems to have some consensus and has a trial implementation, but they’ve been quiet for a month or so.
  • It’s on Firefox’s radar
  • Edge: ?

So right now – <video autoplay loop muted> is unfortunately still the safest bet, for the foreseeable future.

@nhoizey
Copy link
Owner Author

nhoizey commented Aug 1, 2018

Thanks a lot for the details @eeeps!

I choose the <video> path for this silly plugin easing sharing of Giphy animated GIFs: https://github.com/nhoizey/nicolas-hoizey.com/blob/master/_plugins/giphy.rb

I wonder if I could/should make it more generic, and part of this plugin.

@eeeps
Copy link

eeeps commented Aug 2, 2018

@nhoizey
Copy link
Owner Author

nhoizey commented Aug 2, 2018

@eeeps thanks for the link, very useful!

Here what I already did: https://nicolas-hoizey.com/2018/08/using-cloudinary-s-fetch-api-to-convert-an-animated-gif-to-a-video.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants