Skip to content
dhardy92 edited this page Mar 7, 2012 · 6 revisions

Usage: fill(color)

Description

This filter permit to return an image sized exactly as requested wherever is its ratio by filling with chosen color the missing parts. Usually used with "fit-in" or "adaptive-fit-in"

Arguments

Example

As original image is : Original pictureOriginal picture

http://localhost:8888/unsafe/fit-in/300x300/filters:fill(blue)/https://github.com/globocom/thumbor/wiki/tom_before_brightness.jpg

Picture after the fill(blue) filterPicture after the fill(blue) filter

http://localhost:8888/unsafe/fit-in/300x300/filters:fill(f00)/https://github.com/globocom/thumbor/wiki/tom_before_brightness.jpg

Picture after the fill(f00) filterPicture after the fill(f00) filter

http://localhost:8888/unsafe/fit-in/300x300/filters:fill(add8e6)/https://github.com/globocom/thumbor/wiki/tom_before_brightness.jpg

Picture after the fill(add8e6) filterPicture after the fill(add8e6) filter

Clone this wiki locally