Skip to content
Guilherme Souza, A.k.a.: Galinho edited this page Jun 30, 2015 · 8 revisions

EXPERIMENTAL

Usage: gifv()

Description

This filter converts a gif to a mp4 or webm. filters:gifv() to mp4 filters:gifv(webm) to webm Still has some issues with variable frame rate gifs.

Instructions

In order to use this filter you should add this to the config:

OPTIMIZERS = [
    'thumbor.optimizers.gifv',
]

Arguments

format - nothing to generate mp4 and webm to generate webm.

Example

http://thumbor-server/unsafe/300x200/filters:gifv()/some/image.gif

Html Example

GifV Example

<video autoplay loop>
  <source type="video/mp4" src="http://thumbor-server/unsafe/filters:gifv()/some/image.gif">
  <source type="video/webm" src="http://thumbor-server/unsafe/filters:gifv(webm)/some/image.gif">
</video>

Clone this wiki locally