Applies one of predefined photo filters by its
The way your images look affects their engagement rates.
You apply filters thus providing beautiful images consistent
across content pieces you publish.
:name should be one of the following:
:amount can be set in the range from -100 to 200 and defaults to 100.
- 0 stands for no changes in the image, the output is equal to the original.
- Values in the range from 0 to 100 gradually increase filter strength; 100 makes filters work as designed.
- Values over 100 emphasizes filter effect: the strength of applied changes.
- Any negative number would mean subtracting the difference between the filtered and original images from the original. That will produce a "negative filter" effect.
All filters provide predictable outputs with the
:value ranging from 0 to 100.
For some filter presets, setting the
:amount value outside those bounds
may produce weird results.
For example, all filters producing grayscale outputs
will result in a negative image when set to the
:amount greater than 100.
Set to negative values, those will saturate an image.
Here's how all of our filters look like: