spatie / statamic-responsive-images

Responsive images for Statamic 3
MIT License
104 stars 29 forks source link

Height calculated wrongly #128

Closed codedge closed 2 years ago

codedge commented 2 years ago

I saw that in version 2.9.1 some correction for calculation of the height was done. Currently I am experiencing problems with calculation the correct heigth with a ratio of 1.

As you can see each image got a different height although the width is always the same.

grafik
{{ responsive:image
    class="rounded main-image mx-auto" alt="{alt | sanitize }" title="{label | sanitize}" ratio="1.0"
}}

In version 2.8.5 everything works normal. From then on the issues appear.

Env:

riasvdv commented 2 years ago

I cannot seem to reproduce this, if you're still having this issue, please open a new one. Please also share the html output.