Skip to main content

A filter to print the input image in different predefined image sizes.

Project description

image-filter

PyPI version Downloads Linting Python package Upload Python Package MIT License

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

lektor-image-filter-0.6.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

lektor_image_filter-0.6-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page