Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

sport1online/thumbor-focus-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thumbor Focus Filter Build Status

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

Installation

pip install thumbor-focus-filter

Configuration

By adding FILTERS in thumbor.conf with thumbor-focus-filter, for example:

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

Usage

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

focus(percentage_width,percentage_height)

Here'are some examples:

http://thumbor/unsafe/filter:focus(49,32)/your-image-url