globocom/thumbor — pull request #65 by dhardy92 (2012-02-03 16:59:27+00:00)
Title: Filter fill(<color>)

Hello,

This is a new filter that permit returning a fit-in centered image with the size requested.
The empty aera are filled with the color passed as color name or hexadecimal code (with the starting #)

http://192.168.135.117:8887/unsafe/fit-in/80x80/filters:fill%28blue%29/github.com/globocom/thumbor/wiki/tom_before_brightness.jpg

result in a square image of 80x80 size with fit-in tom centered and surrounded by blue lines

This could be usefull when having needed for precalculating page rendering on browser without breaking ratio of the image when width and height is not known.

I also add the "paste" method missing in graphicsmack engine and a new engine method "gen_image" to generate a uniform colored image of whatever size.

I would like some tests for this class but need some template for filters to help me.

Cheers,

--
Damien