# Plugin idea: Image optimization with WebP

**URL:** <https://meta.discourse.org/t/plugin-idea-image-optimization-with-webp/36470>\
**Category:** Feature\
**Created:** [December 9, 2015, 10:05am UTC](https://meta.discourse.org/t/plugin-idea-image-optimization-with-webp/36470 "2015-12-09T10:05:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)\
**Post date:** [March 14, 2016, 8:47am UTC](https://meta.discourse.org/t/plugin-idea-image-optimization-with-webp/36470/5 "2016-03-14T08:47:15Z")

</div>

> [@erlend\_sh](#):
>
> There are a couple different ways to do this. I wonder if perhaps a stand-alone microservice would be the way to go, like we did in order to optimize avatar rendering.
> 
> 1. User submits a .gif image. If “Gif converter” service is enabled then:
> 2. Server downloads the gif
> 3. Gif is converted to mp4
> 4. Original gif link is replaced with local .mp4 file.

As a continuation of this small plugin spec:

1. Discourse persist `original_filename` which is useful as an indicator of GIF.
2. It’s better to show a `gif` badge like Twitter since it’s possible to pause the generated video. It may be confusing if there is no such badge.
3. While replacing original file may be hard to retrieve the original gif, a linked list like model could be used (`origin` of video can point to relative path of original gif)
4. Do some modification preventing original gif being removed by scheduled task

---

_[View the full topic](https://meta.discourse.org/t/plugin-idea-image-optimization-with-webp/36470)._
