Skip to content

Instantly share code, notes, and snippets.

@intellisense
intellisense / crypto.py
Created December 18, 2017 19:23
libthumbor CryptoURL patch to support PDF preview URL
from __future__ import absolute_import
import base64
from six import text_type, PY3
from libthumbor import CryptoURL as BaseCryptoURL
from libthumbor.url import get_url_parts