Skip to main content

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 files for trytond_nereid_image_transformation 4.0.0.1

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

Source distribution (sdist)

Source distribution for trytond_nereid_image_transformation 4.0.0.1
File Size Uploaded
trytond_nereid_image_transformation-4.0.0.1.tar.gz 7.9 kB Details

Release files / trytond_nereid_image_transformation-4.0.0.1.tar.gz

Download URL trytond_nereid_image_transformation-4.0.0.1.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ea3b2565e08fa403319ec159d23963c578d5c2c95e5284867d15030d61fcc404
BLAKE2b-256 checksum
How to use checksums
d0d0ff2dc4dfa2f7fd60604d22d082e5a06d273f97b155b4e218c7ff27992aff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

4.0.0.1 This release

1 release file

3.6.1.1

1 release file

3.6.1.0

1 release file

3.4.2.1

1 release file

3.4.1.0

1 release file

3.4.0.1

1 release file

3.2.0.1

1 release file

3.0.1.1

1 release file

3.0.1.0

1 release file

3.0.0.1

1 release file

2.8.0.1

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