Skip to main content

Image transforming WSGI middleware

Project description

This package provides a WSGI middleware component which transforms and converts image streams using PIL.

Usage

The middleware responds to the following URL parameters:

@width Width @height Height @mimetype MIME-type @quality Image quality (default is 80)

Example:

http://host/path/to/images/foo.jpg?width=640&height=480&mimetype=image/png

Note that in a real-world setup, you’d want to put a caching proxy in front of your application.

Future plans

Support video transcoding.

Credits

Malthe Borch <mborch@gmail.com> and Stefan Eletzhofer <stefan.eletzhofer@inquant.de>

Changelog

0.3 (released 2008-10-10)

  • Made logic robust to unexpected parameters. [malthe]
  • Fixed bug where parameters would be drawn from the WSGI environment. [malthe]
  • Added mimetype conversion. [malthe]

0.2 (released 2008-10-08)

  • Fixed entry point name.

0.1 (released 2008-10-03)

  • Initial release.

Project details


Download files

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

Files for repoze.bitblt, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size repoze.bitblt-0.3.tar.gz (11.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page