WSGI application to dynamically resize images.
Project description
imageproxy is a small standalone WSGI application that dynamically resizes images.
It supports virtual hosting, so you can use the same instance to serve assets for different domains.
Example config file:
[site:example.net] root=/srv/example.net/web/media/images prefix=/assets/media/images [site:example.com] root=/srv/example.com/web/media/images prefix=/assets/media/images
By default only JPEG files can be resized, but if you’d like to make GIFs and PNGs resizable, add the following:
[type:image/gif] resize=true [type:image/png] resize=true
You can specify the configuration file location by giving its path in the IMAGEPROXY_SETTINGS environment variable.
If you want to use this with Paste, it comes with a sample config file. Naturally, you’ll need Paste, PasteDeploy, and PasteScript to run it. However, Paste isn’t required and the imageproxy.create_application callable can be used with any WSGI server.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imageproxy-0.2.0.tar.gz.
File metadata
- Download URL: imageproxy-0.2.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd56114e1d7e477ec0884e7ad20853cd3d32a9f4c121db256a4e82cf66a25a30
|
|
| MD5 |
4b359b398d5f32a15634c402bb87a5c4
|
|
| BLAKE2b-256 |
ec1dbda13441e9165139ccd2a1ef595a26bdd3f7b9ece0ea8b6ed36abf01278a
|
File details
Details for the file imageproxy-0.2.0-py3-none-any.whl.
File metadata
- Download URL: imageproxy-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8d43918f365eb08779501f836276b69113f6d4de42b7ced38ace52107676542
|
|
| MD5 |
3122654398b61b512469131f6540792f
|
|
| BLAKE2b-256 |
6d4bf01b24a704ad5cb2d2dc21f719ba05bd499336ae202a4c764f749fbe3494
|