Skip to content

wongnai/thumbor-text-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thumbor Tex Filter

This plugins provide a way to generate text via Thumbor Filter.

Installation

pip install thumbor_text_filter

Configuration

By adding FILTERS in thumbor.conf with thumbor_text_filter, for example:

FILTERS =     [
    # other filters....
    'thumbor_text_filter',
]

Usage

Add text() to thumbor url at filters section, method signature is like this:

text(word, x, y, color, font-size, font-family)

You can omit font-family, it will use Tahoma as default. For color, please see available color here http://pillow.readthedocs.io/en/4.0.x/reference/ImageColor.html#color-names

Here'are some examples:

http://thumbor/unsafe/filters:text(hello,10,10,red,25)/your-image-url
http://thumbor/unsafe/filters:text(hello,10,10,red,25,Arial)/your-image-url

Copyright

MIT

About

Add custom text to image with Thumbor filter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages