Skip to main content

Nereid Dynamic Image Resizing and transformation module

Project description

This module works as a dynamic image resizing addon for the statifc 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.


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

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


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 trytond_nereid_image_transformation, version
Filename, size File type Python version Upload date Hashes
Filename, size trytond_nereid_image_transformation- (9.1 kB) File type Source Python version None Upload date Hashes View

Supported by

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