4

Referencing this article: https://cloudinary.com/blog/evolution_of_img_gif_without_the_gif

What is the compatibility situation with videos in img in 2020? I don't know what the name of the feature is called to look for in caniuse.

  • Now you can <img src=".mp4">s in Safari Technology Preview
  • Early results show mp4s in tags display 20x faster and decode 7x faster than the GIF equivalent - in addition to being 1/14th the file size!
  • Now we wait for the other browsers to catch-up
3
  • 1
    You should quote some of the relevant content from the article in your question, in case the link goes offline. Perhaps quote In the latest Safari Tech Preview, thanks to some hard work by Jer Noble, we can now use MP4 files in <img> tags. Commented Feb 7, 2020 at 13:17
  • In 2020, keep up on webm: webmproject.org Commented Feb 9, 2020 at 21:08
  • @LonnieBest question's about HTML not media formats. Commented Mar 27, 2020 at 17:02

2 Answers 2

2

By today (Oct 2022), we still can only use <img src=".mp4"> on Safari. If you want to make MP4 files work like GIFs on other browsers, you might wanna use <video autoplay muted loop>.

Sign up to request clarification or add additional context in comments.

Comments

0
  • MP4: <img src="foo.mp4"> only supported in Safari
  • Animated GIF: <img src="foo.gif"> supported in all modern browsers
  • Animated WebP: <img src="foo.webp"> supported in all modern browsers

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.