Convert image URLs to Netlify LFS resize URLs.
Project description
netlify-lfs-resize-url
This plugin provides a filter that allows the user to generate Netlify Image Transformation resize URL parameters when working with Netlify Large Media.
Usage
The nf_resize
filter works in conjunction with the url
filter as follows:
{% for image in this.attachments.images %}
<img src="{{ image|url|nf_resize(w=720) }}">
{% endfor %}
The above will return the following:
<img src="/images/example.png?nf_resize=fit&w=720">
Arguments
Arguments correspond to Netlify transformation parameters.
Argument | Accepts | Default |
---|---|---|
nf_resize |
'fit', 'smartcrop' | 'fit' |
h |
Positive integers | null |
w |
Positive integers | null |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for lektor-netlify-lfs-resize-url-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a9ff12a233e7436a5377d85e9e75525c41b8785864c38e1b6ad81dc244c287 |
|
MD5 | ee9c93b02faea96e25519c6e5b252b36 |
|
BLAKE2b-256 | 12d815301c27e0bbab99c53400643db117832fdce6aa1a328098191e80e8b0ac |
Close
Hashes for lektor_netlify_lfs_resize_url-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc157209e4fc9d6127d1a85b57e1b4bcd4a24d80b622a32df066db1321a2b92f |
|
MD5 | 49021b617ec6c3d2758b8a4869eeb488 |
|
BLAKE2b-256 | 53adb0694feacdda3edd6b8f41d8247cec3c0ce9d03ac4978c7183f9f3c2865c |