<<<<<<< HEAD
thumbor is a smart imaging service. It enables on-demand crop, resizing and flipping of images.
It also features a VERY smart detection of important points in the image for better cropping and resizing, using state-of-the-art face and feature detection algorithms (more on that in Detection Algorithms).
Using thumbor is very easy (after it is running). All you have to do is access it using an URL for an image, like this:
http://<thumbor-server>/300x200/smart/s.glbimg.com/et/bb/f/original/2011/03/24/VN0JiwzmOw0b0lg.jpg
That URL would show an image of the big brother brasil participants in 300x200 using smart crop.
There are several other options to the image URL configuration. You can check them in the Usage page.
For more information check thumbor's documentation.
libthumbor allows easy usage of thumbor in Python. Check the docs for django integration.
This version is compliant with the new URL generation schema (thumbor 3.0.0 and up).
from libthumbor import CryptoURL
crypto = CryptoURL(key='my-security-key')
encrypted_url = crypto.generate(
width=300,
height=200,
smart=True,
image_url='/path/to/my/image.jpg'
)
Check the wiki for more information on using libthumbor.
- Generic URL encryption
- Django Generic View and URL
- Django Generic View and URL
15fe862f59c98214949ddc295ea2b9b5662cf398