Skip to content

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

License

Notifications You must be signed in to change notification settings

Threekit/libthumbor

 
 

Repository files navigation

Build Status Coverage 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).

Warning

2.x version won't support old url's

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

Custom Build

  • poetry build to create dist/libthumbor-<version>.tar.gz
  • untar that tar.gz right there
  • cd in libthumbor-<version>
  • python3 setup.py install --prefix . to create dist/libthumbor-<version>-py<python version>.egg
  • use libthumbor-<version>-py<python version>.egg to update the Dockerfile

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.3%
  • Makefile 0.7%