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.
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.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f48a3f673a73034e6aad8e641e6f07f041e5c806cf244d4b970b40f60f45df61 |
|
MD5 | adb7f3c691d24cf5334e1659ae3e16af |
|
BLAKE2b-256 | 378afe6af483b89d5886689a7531943928ddb3047662eaadfd6402d2e3c696ff |