Skip to content
A Focus filter for Thumbor
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
thumbor_focus_filter
.gitignore
.python-version
.travis.yml
README.md
requirements
setup.py

README.md

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
You can’t perform that action at this time.