Skip to main content

thumbor-presets =============== Make [Thumbor](https://github.com/thumbor/thumbor) urls short and sweet by keeping common sizes and filters in settings. Ever felt your inner perfectionist crying when looking at the Thumbor urls? Want to nominate Thumbor for the Guinness World Record for having the longest urls in the universe? So did I. Meet thumbor-presets - a tiny add-on to keep your most common sizes, filters and settings right in the Thumbor's config. Usage ----- Install this package via PyPi or GitHub: ```sh pip install thumbor_presets # or pip install https://github.com/alexmorozov/thumbor-presets ``` Add your common presets to your Thumbor config file: ```python # thumbor.conf PRESETS = { 'small_thumb': '250x100/smart/filters:grayscale(),watermark(/some/image.jpg)', } ``` Start a Thumbor instance with a presets-aware app: ```sh thumbor -a thumbor_presets.app.ThumborServiceApp ``` And you're done! Access your presets the easy way: ````curl curl http://thumbor_server.com/unsafe/preset/small_thumb/image.jpg ```` See also -------- * The excellent [thumbor-community/shortener](https://github.com/thumbor-community/shortener) extension also allows you to shorten your urls, though a slightly different way. Requirements ------------ * thumbor License ------- MIT Authors ------- `thumbor-presets` was written by [Alex Morozov](mailto:inductor2000@mail.ru).

Project description

UNKNOWN

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thumbor_presets-0.1.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thumbor_presets-0.1.3-py2-none-any.whl (5.1 kB view details)

Uploaded Python 2

File details

Details for the file thumbor_presets-0.1.3.tar.gz.

File metadata

File hashes

Hashes for thumbor_presets-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3f2def2b87fd2834c9e7977699580dc85923e3a06e6566a4cae9e0b4a30534ed
MD5 d735bc2b5224770a6288bda64e665215
BLAKE2b-256 97c01f0ded52e35d05c6802de3eb016770c7a36d231b9aee9ce4c172311b13c3

See more details on using hashes here.

File details

Details for the file thumbor_presets-0.1.3-py2-none-any.whl.

File metadata

File hashes

Hashes for thumbor_presets-0.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 d7d402d28fd8935d027579adf27462bdf42e81c2ed1c386f9413a67f7e1f85a6
MD5 0db03927a82e04283f70bf994acdc9e3
BLAKE2b-256 eb5a68f4efdda23b2f8070bded032f3d93957190c6df43d2777835a1b03eb68f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page