heimrichhannot / contao-utils-bundle

This bundle offers various utility functionality for the Contao CMS.
GNU Lesser General Public License v3.0
8 stars 4 forks source link

Twig-Image Filter defekt #66

Closed mj1985 closed 11 months ago

mj1985 commented 1 year ago

Context Contao version: 4.13.23 Bundle version: 2.228.0 / 2.227.1 PHP version: 8.1

Description Seit Version 2.226.1 funktioniert der Image-Filter aus diesem Bundle nicht mehr richtig. Getestet habe ich dieses mit dem Beispiel: {{box.image|image([0,0,6],{'href' : 'https://google.de', 'linkTitle' : 'vmd.content.more.default'|trans})|raw }} und unserem alten Code {{ img.image|image(imageSize, {'class': imageClass|trans})|raw }} wobei imageClass vorher wie folgt festgelegt ist: {% set imageClass = 'img-fluid img-parallax w-100' %}

Ausgabe: ImageClass wird nicht berücksichtigt image

koertho commented 1 year ago

@mj1985 Sorry for not responding until now. I just released an update that address another issue with the image filter, maybe it also solves your issue.

mj1985 commented 1 year ago

Unfortunately 2.228.2 doesn't fixes the issue. This still doesn't work: {{ image|image(imageSize, {class: 'img-fluid'})|raw }} class and img.class are still empty. image CSS classes via image-sizes works fine.

koertho commented 1 year ago

@vvohh Could you have a look into this?

vvohh commented 1 year ago

Hello @mj1985 , most of the available options didnt make it to the final rendering of the image, this should be fixed in the latest version (as of 2.230.1)

mj1985 commented 11 months ago

@vvohh thanks, the issue has been resolved