You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my own experience with customers I'd also suggest the option to "blow up" images beyond their original size. I know it might look absolutely crappy but "normal" users are often not able to provide images for news or events that meet the minimum required resolution to fit nicely into the layout.
I'd also suggest the option to "blow up" images beyond their original size.
We decided against this feature as it unnecessarily increases the network traffic. The upscaling should happen on the client side. See also #48 (comment)
IMHO "color" should also include transparent.
Agreed. And transparent should be de default I think.
A version of box that adds a background color to the image to get exactly the configured size without increaseing network traffic can also be achived o the client side with css.
For example if you put desired aspect-ratio and background-color on the .image_container and center the image within. 🤷🏼♂️
A version of box that adds a background color to the image to get exactly the configured size without increaseing network traffic can also be achived o the client side with css.
I think adding a solid background color should not increase the image size too much as most image formats can compress such things very good.
Activity
bennyborn commentedon Aug 20, 2021
IMHO "color" should also include transparent.
From my own experience with customers I'd also suggest the option to "blow up" images beyond their original size. I know it might look absolutely crappy but "normal" users are often not able to provide images for news or events that meet the minimum required resolution to fit nicely into the layout.
ausi commentedon Aug 20, 2021
We decided against this feature as it unnecessarily increases the network traffic. The upscaling should happen on the client side. See also #48 (comment)
Agreed. And
transparentshould be de default I think.asaage commentedon Aug 20, 2021
A version of
boxthat adds a background color to the image to get exactly the configured size without increaseing network traffic can also be achived o the client side with css.For example if you put desired aspect-ratio and background-color on the .image_container and center the image within. 🤷🏼♂️
ausi commentedon Aug 20, 2021
You can even do that with the image itself, see contao/contao#3347 (comment)
ausi commentedon Aug 20, 2021
I think adding a solid background color should not increase the image size too much as most image formats can compress such things very good.