Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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

This version

0.2.0

Download files

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

Files for imageproxy, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size imageproxy-0.2.0-py3-none-any.whl (10.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size imageproxy-0.2.0.tar.gz (9.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page