Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

arcivr/thumbor-padding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

*** Unmaintained ***

We're no longer using Thumbor for our image stack, and so this is unmaintained. Use at your own risk.

Thumbor Padding

This plugin provides a way to pad in an image via Thumbor Filter.

Installation

pip install thumbor_padding

Configuration

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

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

Usage

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

padding(<left>, <top>, <right>, <bottom> [, <color>])

You can omit color, it will use white as the default. For color, use a valid hex code without the #.

Here are some examples:

http://thumbor/unsafe/filters:padding(10, 10, 20, 20)/your-image-url
http://thumbor/unsafe/filters:padding(10, 10, 20, 20, eee)/your-image-url

Copyright

MIT

About

Padding filter for thumbor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages