-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix responsive images definitions when loaded from database #2420
Comments
I can't confirm the issue. Format conversion works as expected. |
I can confirm that this issue occurs if you use an image size from the database 👍 When using an image size from the bundle config it works. |
I'm not sure what you mean by use image size from the database vs bundle config but conversion and lazy don't work for me either. |
In Contao you can define responsive image sizes via the database - i.e. via the back end in your theme - or via the |
I'm configuring it in the Contao Image Theme settings. So that must be pulling from the database once configured. |
You could do the following in config.yml.
|
@fritzmg any idea what's causing this? |
Haven't looked too much into it yet. In theory it should work. While Isotope still uses the deprecated Image::create and Picture::create methods, they are supposed to support image sizes from the database (in whichever format). |
It's actually a bug in Contao itself. However, since |
As the |
We would have to copy this code: https://github.com/contao/contao/blob/d428d705a30fa0a6c81a39f90a21a19b2f7f0de1/core-bundle/src/Image/PictureFactory.php#L153-L176 However, since Isotope requires at least Contao 4.9, it should use the |
Currently, the pixel densities of the images are correctly used for the gallery.
However, there is no 100% support for all features from Contao.
For example, images are not converted to webp.
Also, the lazy attribute is not added in the source code
The text was updated successfully, but these errors were encountered: