Ecosyste.ms: Repos
An open API service providing repository metadata for many open source software ecosystems.
Package Usage: pypi: thumbor_presets
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:[email protected]).
3 versions
Latest release: about 8 years ago
22 downloads last month
View more package details: https://packages.ecosyste.ms/registries/pypi.org/packages/thumbor_presets
View more repository details: https://repos.ecosyste.ms/hosts/GitHub/repositories/alexmorozov%2Fthumbor-presets
Dependent Repos 2
nxwi/illacceptanything Fork of illacceptanything/illacceptanything
The project where literally anything* goes.- * data/requirements.txt
Size: 1.33 GB - Last synced: 7 months ago - Pushed: over 1 year ago
illacceptanything/illacceptanything
The project where literally anything* goes.- * data/requirements.txt
Size: 1.47 GB - Last synced: 10 days ago - Pushed: 10 days ago
ntchambers/illacceptanything
The project where literally anything* goes- * requirements.txt
Last synced: over 1 year ago
TheBearodactyl/illacceptanything Fork of illacceptanything/illacceptanything
The project where literally anything* goes.- * data/requirements.txt
Size: 1.33 GB - Last synced: 10 months ago - Pushed: 10 months ago
braillescreen/illacceptanything Fork of illacceptanything/illacceptanything
The project where literally anything* goes.- * data/requirements.txt
Size: 1.47 GB - Last synced: 9 months ago - Pushed: about 1 year ago
boginw/illacceptanything Fork of illacceptanything/illacceptanything
The project where literally anything* goes.- * data/requirements.txt
Size: 1.33 GB - Last synced: about 1 month ago - Pushed: 9 months ago