Skip to content

farchanjo/libthumbor

 
 

Repository files navigation

<<<<<<< HEAD

thumbor imaging service PyPi version PyPi downloads codeq

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.

======= Build Status

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).

Using it

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'
)

Docs

Check the wiki for more information on using libthumbor.

Contributions

Bernardo Heynemann

  • Generic URL encryption

Rafael Caricio

  • Django Generic View and URL

Fábio Costa

  • Django Generic View and URL

15fe862f59c98214949ddc295ea2b9b5662cf398

About

Python's extensions to thumbor. These are used to generate safe urls among others.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%