Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Nereid Dynamic Image Resizing and transformation module

Project Description

This module works as a dynamic image resizing addon for the static file functionality in Nereid.

How to use

The module introduces a new URL handler to the static file module, which takes a URL path in which transformation commands could be embedded to dynamically resize, rotate (TODO) and do various other tranformations.

A note of warning

Image manipulation is slow! Really Slow!

Hence, this module is designed to be used with a frontend cache. The responses from the module by default has instructions for frontend caches to store the file in cache for 86400 seconds (equivalent to a day).

It is also recommended to use X-Send-File configuration with Nereid and your web server (apache, nginx) to speed up delivery of images.

Examples

{{ product.large_image.transform_command().thumbnail(120, 120).resize(100, 100) }}

Using the above in a template should result in the following URL:

/en_US/static-file-transform/1/thumbnail,w_120,h_120,m_n/resize,w_100,h_100,m_n.png
Release History

Release History

This version
History Node

4.0.0.1

History Node

3.6.1.1

History Node

3.6.1.0

History Node

3.4.2.1

History Node

3.4.1.0

History Node

3.4.0.1

History Node

3.2.0.3

History Node

3.2.0.2

History Node

3.2.0.1

History Node

3.0.1.2

History Node

3.0.1.1

History Node

3.0.1.0

History Node

3.0.0.1

History Node

2.8.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
trytond_nereid_image_transformation-4.0.0.1.tar.gz (7.9 kB) Copy SHA256 Checksum SHA256 Source Aug 17, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting