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
When defining width and height both with crop, srcset images are not generated correctly.
This code generates 200x200 cropped images, as it should: <v:media.image src="{column.media}" alt="test" width="200c" height="200c" relative="0" treatIdAsReference="1" />
This code generates "non-square" images with a max-width of 200 - should be squared though: <v:media.image src="{column.media}" alt="test" width="200c" height="200c" srcset="200,300,400,500" relative="0" treatIdAsReference="1" />
This code doesn't work at all / generates img tags with empty src attr.: <v:media.image src="{column.media}" alt="test" width="200c" height="200c" srcset="200c,300c,400c,500c" relative="0" treatIdAsReference="1" />
The text was updated successfully, but these errors were encountered:
Any news on this? I am facing the same problem and do not want to rely on coming up with my own partial. This must obviously be some bug in the VHS viewhelper. I am currently using the master version and the problem is still there.
Related to #1099
When defining width and height both with crop, srcset images are not generated correctly.
This code generates 200x200 cropped images, as it should:
<v:media.image src="{column.media}" alt="test" width="200c" height="200c" relative="0" treatIdAsReference="1" />
This code generates "non-square" images with a max-width of 200 - should be squared though:
<v:media.image src="{column.media}" alt="test" width="200c" height="200c" srcset="200,300,400,500" relative="0" treatIdAsReference="1" />
This code doesn't work at all / generates img tags with empty src attr.:
<v:media.image src="{column.media}" alt="test" width="200c" height="200c" srcset="200c,300c,400c,500c" relative="0" treatIdAsReference="1" />
The text was updated successfully, but these errors were encountered: