hugo-mods/lazyimg

Resizer `responsive` exceeds `maxSize` boundary

kdevo opened this issue · 0 comments

kdevo commented

When using the resizer responsive with responsiveSizes exceeding maxSize, one image after maxSize is included in the resulting image set.

Reproduction

Example config:

maxSize: 1000x
responsiveSizes: ["512x", "1024x", "1280x"]
  • Want images: ["512x"] (maybe it also makes sense to include the "1000x" here?)
  • Got images: ["512x", "1024x"]

Resolution

  • Ensure that no image exceeds user-defined maxSize for responsive resizer
  • Ensure consistency for other resizers, too