# Very large gifs should be shown as previews

**URL:** https://meta.discourse.org/t/very-large-gifs-should-be-shown-as-previews/25423
**Category:** Feature
**Created:** [19 בפברואר,‏ 2015,‏ 8:20pm UTC](https://meta.discourse.org/t/very-large-gifs-should-be-shown-as-previews/25423 "2015-02-19T20:20:18Z")
**Posts on this page:** 1
**Showing post:** 20

<div class="post-metadata">

### Author: ![lidel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lidel/32/115991_2.png) [@lidel](https://meta.discourse.org/u/lidel)
#### Post date: [25 במרץ,‏ 2015,‏ 10:13am UTC](https://meta.discourse.org/t/very-large-gifs-should-be-shown-as-previews/25423/20 "2015-03-25T10:13:27Z")

</div>

> [@Maestra\_Powers](#):
>
> gfycat have API and it’s possible to send all gifs from post to their service and change them into video-links automatically

My thoughts on gfycat from the other thread:

> [@Should Discourse convert GIFs to mp4 video files?](https://meta.discourse.org/t/should-discourse-convert-gifs-to-mp4-video-files/16739/5):
>
> Some communities would benefit from such functionality. Especially ones with download remote images to local setting enabled stuck_out_tongue, but faster page loads alone is a good reason to think about it. Quick hack would be to just use [gfycat.com API](http://gfycat.com/api). Assuming one does not mirror remote images, I think it is achievable even with pure Javascript which you can add via /admin/customize/css\_html. Lets say JS iterates over posts and if it finds .gif image. HTTP GET is performed: [http://upl…](http://upload.gfycat.com/transcode?fetchUrl=i.imgur.com/jGMtJIb.gif)

IMVHO on-the-fly conversion that requires interaction with third party service (gfycat) should be an external plugin or a custom JS.

But I think that default Discourse install could easily ship with automatic onebox for _already existing_ Gfycat links, just like it [already does for GIFV from Imgur](https://meta.discourse.org/t/mp4-gif-embedding/24935).

So this:

```
http://gfycat.com/AggressiveClosedEstuarinecrocodile

```

could be easily oneboxed into a looped `<video>` tag with mp4/webm sources:

```html
<video autoplay="autoplay" muted="muted" preload="auto" loop="loop" poster="//thumbs.gfycat.com/AggressiveClosedEstuarinecrocodile-poster.jpg">
    <source src="//fat.gfycat.com/AggressiveClosedEstuarinecrocodile.webm" type="video/webm">
    <source src="//fat.gfycat.com/AggressiveClosedEstuarinecrocodile.mp4" type="video/mp4">
</video>

```

---

_[View the full topic](https://meta.discourse.org/t/very-large-gifs-should-be-shown-as-previews/25423)._
