Skip to content

1.2.0

Latest

Choose a tag to compare

@tito10047 tito10047 released this 14 Aug 15:58
· 104 commits to main since this release

What's Changed in 1.2.0

Bug Fixes

Point of Interest (PoI) Cropping — two fixes:

  • The pointInterest attribute now correctly accepts pixel coordinates of the focal point in the original image (e.g. pointInterest="544x320" means 544 px from the left, 320 px from the top). Previously
    the values were incorrectly treated as percentages, which caused crops to land at the wrong position.
  • The cropping algorithm now scales the image to the target size instead of slicing the exact target dimensions from the original at full resolution. The bundle finds the largest region of the original
    whose aspect ratio matches the requested output, centres it on the focal point (clamping at edges), and scales the result down — keeping as much of the image as possible.

Preload: Fixed generating an imagesrcset with only a width descriptor and no URL.

Path caching: Fixed an edge case where the cached path was incorrect when a custom LiipImagine filter was applied.

Asset Mapper: Fixed path resolution for images served via Symfony Asset Mapper.

CSS generation:

  • Fixed issue #9 — the smallest breakpoint was not being emitted to the generated CSS.
  • Fixed issue #8 — breakpoints with a zero min_viewport were not emitted to the generated CSS.
  • Restored missing --img-width CSS custom property definition.
  • Removed a generated style rule that was overriding the correct layout style.

Image component:

  • Fixed issue #7 — a null value for src is now handled gracefully without an error.
  • Fixed issue #6 — aspect ratio is now handled correctly when no explicit ratio is provided.

Other

  • Updated Composer dependencies.
  • Documentation updated to reflect the corrected PoI coordinate format and algorithm.