Skip to main content

Convert image URLs to Netlify LFS resize URLs.

Project description


This plugin provides a filter that allows the user to generate Netlify Image Transformation resize URL parameters when working with Netlify Large Media.


You can install this plugin by running the following command in your project's directory:

lektor plugins add netlify-lfs-resize-url


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 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.

Files for lektor-netlify-lfs-resize-url, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size lektor_netlify_lfs_resize_url-0.1.2-py3-none-any.whl (2.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size lektor-netlify-lfs-resize-url-0.1.2.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page