Allows for the dynamic alteration of images using the URL.
Project description
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()
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 Distributions
Built Distribution
File details
Details for the file transmogrify-1.1.2-py2-none-any.whl
.
File metadata
- Download URL: transmogrify-1.1.2-py2-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e35cf19b621a2f6e1b46f1b5e1a4d740750726355f478bb5b2667a536d202be4 |
|
MD5 | 2b23a206971078053394d37bfdacd68b |
|
BLAKE2b-256 | 064d8944f47d85c34a0490778f01b42d7879a28edc754f48d9beeb54b76f6e0f |