Beware of geeks bearing GIFs

Why, they might not actually be GIFs at all:

Twitter started supporting animated GIFs. But there’s a catch! What Twitter ends up showing you isn’t actually a GIF at all. EVERYBODY PAAANIIIIIIC.

Note: don’t actually panic. This isn’t a bad thing. Quite the contrary.

As noticed by the folks over at Embedly, the “GIFs” that end up in your Twitter feed aren’t actually GIFs at all. They’re technically not even really image files in a strict sense — they’re more like video files without sound. They’re MP4s, embedded with the HTML5 video tag. Even if you upload a GIF, it’s converted into an MP4.

And why is this good? Embedly explains:

GIFs are terrible at compression… A GIF is literally a sequence of independent images squeezed into the same file. An mp4 video can take advantage of all kinds of fancy compression techniques like keyframes and forward-predictive frames.

If most of your users are on mobile, this is a huge win. Even desktop users will notice better performance on a page with many GIFs.

(Via this Adam Gurri tweet.)







3 comments

  1. Georganna Hancock (@GLHancock) »

    21 June 2014 · 11:06 am

    Right. GIFs are static, single images. ANIMATED GIFs are images with movement. They are little movies. Why are people trying to change the meaning of the name of one of the earliest image files, the GIF?

  2. CGHill »

    21 June 2014 · 12:05 pm

    Because hardly anyone uses the static files anymore, it seems: they’ve all graduated to JPEG or PNG. This is one of those cases where actual usage seems to carry more weight than original design intention.

  3. CGHill »

    22 June 2014 · 4:33 pm

    Incidentally, I had to test this sort of thing for myself. A 44-frame animated GIF I have, 690 x 388 pixels, runs 5,106,319 bytes. In MP4? 264,204.

RSS feed for comments on this post