Skip to main content
  • Now only supports Python 2.5+

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.

Security Key Generation

action_string = “_r200” sha1(action_string + SECRET_KEY).hexdigest()

Release files for transmogrify 2.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for transmogrify 2.0.6
File Interpreter ABI Platform
transmogrify-2.0.6-py2-none-any.whl Python 2 none any Details

Release files / transmogrify-2.0.6-py2-none-any.whl

Download URL transmogrify-2.0.6-py2-none-any.whl
Size 43.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
dc0c2cc2684c9bca5c7d385d9c14dfee80464d4f1b41e35c9230585841b46eda
BLAKE2b-256 checksum
How to use checksums
fd97968d7f70eeb237a20d312a43510cef9a97c0abd267646233c571b30697f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page