File: cover.rst

package info (click to toggle)
thumbor 7.7.7-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 40,556 kB
  • sloc: xml: 295,435; python: 18,673; ansic: 1,479; makefile: 360; sh: 27
file content (35 lines) | stat: -rw-r--r-- 598 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Cover
=====

Usage: `cover()`

Description
-----------

This filter is used in GIFs to extract their first frame as the image to be used as cover.

.. note::

    This filter will only function when ``USE_GIFSICLE_ENGINE`` are set to ``True`` in ``thumbor.conf``:

.. code:: python

    USE_GIFSICLE_ENGINE = True

Arguments
---------

No arguments.

Example
-------

.. image:: images/animated.gif
    :alt: Gif before cover filter

::

    `http://localhost:8888/unsafe/filters:cover()/http://server.my/animated_static.gif`

.. image:: images/animated_static.gif
    :alt: Gif after cover filter