Skip to main content

Allows for the dynamic alteration of images using the URL.

Project description

Transmogrify is a Python-based image manipulator. It allows for dynamic alteration of images using the URL of the image. The biggest benefit is to the web designer, as images can be scaled to fit the design on the fly.

Transmogrify is a library to dynamically alter images. Its biggest impact is probably how it frees up the designer from resizing images for different designs.

Three parts to Transmogrify

+----------------------+        +----------------------+
|      Web Server      |        |     Media Server     |
|                      |        |                      |
|    URL Generator     |        |      URL Router      |
|                      |        |   Image Processor    |
+----------------------+        +----------------------+

There are several parts to transmogrify. At the core is the image processor. It takes an image file and a set of one or more actions and outputs a new file, predictably renamed, with the actions performed. The media server can now serve this image as normal.

The URL router works with the web server when the processed file doesn’t exist. It tells the image processor to create the correct version, allowing the web server to serve the file.

Lastly, the URL generator is a piece of code that generates the URL for the image based on what the designer wants to do with the image.

Implementations

Currently there is a URL generator for Django (as a template tag), and URL routers for lighttpd (as a 404 handler) and Django (for local serving).

Help for other frameworks and servers is greatly appreciated. The image processor is pure python and is based on PIL.

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

transmogrify-0.1beta1.tar.gz (4.9 MB view details)

Uploaded Source

File details

Details for the file transmogrify-0.1beta1.tar.gz.

File metadata

File hashes

Hashes for transmogrify-0.1beta1.tar.gz
Algorithm Hash digest
SHA256 fe9df4ecae7b8fa16d1d5d1b9b1967431464fcd8178973b4c150d2ff3eb47610
MD5 674d91b4f86addaa35c6cd62b1715f61
BLAKE2b-256 ba452b179dfe446fb732be1f9df937b0c328d4eea36619701008be29af999bfa

See more details on using hashes here.

Supported by

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