File: contrast.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 (34 lines) | stat: -rw-r--r-- 876 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
Contrast
========

Usage: `contrast(amount)`

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

This filter increases or decreases the image contrast.

Arguments
---------

- ``amount`` - :math:`-100` to :math:`100` - The amount (in %) to change the image contrast. Positive numbers increase contrast and negative numbers decrease contrast.

Example
-------

.. image:: images/tom_before_brightness.jpg
    :alt: Picture before the contrast filter

::

    http://localhost:8888/unsafe/filters:contrast(40)/https%3A%2F%2Fgithub.com%2Fthumbor%2Fthumbor%2Fraw%2Fmaster%2Fexample.jpg

.. image:: images/tom_after_positive_contrast.jpg
    :alt: Picture after positive contrast

::

    http://localhost:8888/unsafe/filters:contrast(-40)/https%3A%2F%2Fgithub.com%2Fthumbor%2Fthumbor%2Fraw%2Fmaster%2Fexample.jpg

.. image:: images/tom_after_negative_contrast.jpg
    :alt: Picture after negative contrast