# Giphy onebox for animated gifs

**URL:** https://meta.discourse.org/t/giphy-onebox-for-animated-gifs/41478
**Category:** Feature
**Created:** [2016 年3 月 23 日 13:50 UTC](https://meta.discourse.org/t/giphy-onebox-for-animated-gifs/41478 "2016-03-23T13:50:19Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Koinu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/koinu/32/120781_2.png) [@Koinu](https://meta.discourse.org/u/Koinu)
#### Post date: [2016 年5 月 24 日 06:38 UTC](https://meta.discourse.org/t/giphy-onebox-for-animated-gifs/41478/2 "2016-05-24T06:38:57Z")

</div>

Instead of oneboxing Giphy, I’d almost be more interested in seeing installation-local support for looping short videos:

- Discourse (plugin) would transcode mp4 / webm versions of gifs and attach them to the post. When viewing the post, only one of the formats—the best one supported by the browser—would actually be rendered.
- Animated gifs from Giphy and elsewhere would automatically be downloaded and attached, the same as ordinary images. Within the bounds of sanity checking, the various formats from upstream would be grabbed instead of transcoding locally and potentially worsening quality.

This is almost certainly a _very_ low priority feature, but It’d still be nice to have. 🙂

* * *

This old thread is related, but misses a key point of what I’d like to see. That being ideally these looping videos should have a user experience that is _exactly_ identical to directly attaching a .gif, aside from automagically consuming less bandwidth (and/or being higher quality).

Showing video player controls and invoking “video” presentation semantics is… very 😬.

> [@Should Discourse convert GIFs to mp4 video files?](https://meta.discourse.org/t/should-discourse-convert-gifs-to-mp4-video-files/16739/):
>
> Just read about this neat trick that Twitter is doing with GIFs: [http://blog.embed.ly/post/89265229166/what-twitter-isnt-telling-you-about-gifs](http://blog.embed.ly/post/89265229166/what-twitter-isnt-telling-you-about-gifs) Perhaps this is something Discourse would like to mimic in the future. And for the watercooler: If a video format does everything GIF does and more, and with better compression, are the days of the GIF numbered?

---

_[View the full topic](https://meta.discourse.org/t/giphy-onebox-for-animated-gifs/41478)._
