jan-herman/kirby-images

Opinionated set of Kirby snippets and utilities for serving highly optimized versions of images.

1.3.0 2024-12-05 14:35 UTC

This package is auto-updated.

Last update: 2024-12-05 14:35:53 UTC


README

Roadmap

  • $asset support
  • fix focus point
  • LQIP implementation
  • cache expensive aspect ratio calculations?

v2.0

  • calculate object-position in css instead of php?
  • add support for native lazy loadign and other libraries (currently only lazysizes is supported) - [ ] filters for html markup
  • set legacyAspectRatio to false by default
  • remove ratioPercentage file and asset method
  • remove crop attribute (replaced by object_fit)
  • set object_fit to data-attribute instead of style
  • add width & height attributes to images
  • add slots to image snippet?
  • automatic container & sizes detection from latte AST tree
  • image format options (avif support, option to disable jpeg fallbacks)