# Should Discourse convert GIFs to mp4 video files?

**URL:** <https://meta.discourse.org/t/should-discourse-convert-gifs-to-mp4-video-files/16739>\
**Category:** Feature\
**Created:** [Junho 21, 2014, 8:24am UTC](https://meta.discourse.org/t/should-discourse-convert-gifs-to-mp4-video-files/16739 "2014-06-21T08:24:22Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![lightyear](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@lightyear](https://meta.discourse.org/u/lightyear)\
**Post date:** [Janeiro 17, 2015, 7:30pm UTC](https://meta.discourse.org/t/should-discourse-convert-gifs-to-mp4-video-files/16739/14 "2015-01-17T19:30:22Z")

</div>

> [@lidel](#):
>
> It would be nice if Discourse detected .gif URLs from common providers such as imgur/gfycat and just replaced image with looped video (already provided by site), as it saves a lot of bandwidth.

That sounds like something that could easily be done using the onebox, adding a white list either in the [image](https://github.com/discourse/onebox/blob/master/lib/onebox/engine/image_onebox.rb) or [video](https://github.com/discourse/onebox/blob/master/lib/onebox/engine/video_onebox.rb) engine. I am happy to build that, if such a PR is wanted (could also be behind a configuration setting, if needed).

---

_[View the full topic](https://meta.discourse.org/t/should-discourse-convert-gifs-to-mp4-video-files/16739)._
