libthumbor allows easy usage of thumbor in Python. Check the docs for django integration.
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