A filter to print the input image in different predefined image sizes.
Project description
image-filter
A Lektor filter to print the input image in different predefined image sizes.
This plugin is designed to work together with the lektor-image-resize Plugin.
Current Filters:
{{ 'waffle.jpg' | webpimagesizes }}
will print the configured webp image sized based on the input file name.{{ 'waffle.jpg'| jpgimagesizes }}
will print the configured jpg image sized based on the input file name.
Example
Lektor Jinja2 Input
<img {{ 'waffle.jpg'|webpimagesizes }} />
Lektor HTML Output:
<img src="waffle-small.webp" width="512"
srcset="waffle-small.webp 512w,
waffle-medium.webp 900w,
waffle-woowee.webp 1440w," />
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_image_filter-0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcfc74f13d35ba15e2afcba1fd7da2f3b669b144ccd50d018763ae93e45d5bbf |
|
MD5 | e89b1e121eb03a8ede3e784262b24903 |
|
BLAKE2b-256 | f0f2f7ffaa494955556fce7b626907b7e025a73b2f6dbbf7cb8bb4b504e8eb12 |