forked from thumbor/thumbor
-
Notifications
You must be signed in to change notification settings - Fork 0
Filters
cezarsa edited this page Dec 14, 2011
·
8 revisions
Thumbor (as of 2.0) has support for image filters. Filters usually apply some post-processing to the images and they can be chained and applied in order.
Currently it has the following built-in filters:
- Brightness
- brightness(x) where -100 <= x <= 100
- Contrast
- contrast(x) where -100 <= x <= 100
- Noise
- noise(x) where 0 <= x <= 100. Adds some noise to the image, x is the amount of noise applied.
- RGB
- rgb(r,g,b) where -100 <= r,g,b <= 100. Increment or decrement individual color components for each pixel.
- Round Corner (experimental)
- round_corner(a|b,r,g,b) where 0 <= a <= width/2, 0 <= b <= height/2, 0 <= r,g,b <= 255. Applies a rounded corner filter to the image. 'a' and 'b' are the semi-major axis and semi-minor axis of an ellipse defining the the corner. The 'b' component may be omitted in this case it will be equal to 'a'.