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
The fix applied for this issue causes a bit of a layout problem for me.
Let's say I have a small $img with dimensions of 200x100
And we output it like so (it's part of an array of images): @responsive($img, 'glide:width' => 400])
2.11 output - Uses original dimensions (glide:width is treated as MAX width) <img src="whatever.jpg" width="200" height="100" ...
2.11 screenshot - images are consistently sized, original heights maintained
2.12 output - Stretches the original dimensions (glide:width is treated as MIN width) <img src="whatever.jpg" width="400" height="200" ...
2.12 screenshot - images are all stretched to same width, heights are affected
I know this package isn't really intended for small images but setting up webp images with jpeg fallbacks is a pain and I'd rather let this package handle all of that.
Any chance the code can be updated so that small images are not stretched greater than their original dimensions? I think it would be more consistent with the current documentation which states "Passing glide:width will consider the width as a max width..."
The text was updated successfully, but these errors were encountered:
The fix applied for this issue causes a bit of a layout problem for me.
Let's say I have a small
$img
with dimensions of 200x100And we output it like so (it's part of an array of images):
@responsive($img, 'glide:width' => 400])
2.11 output - Uses original dimensions (glide:width is treated as MAX width)
<img src="whatever.jpg" width="200" height="100" ...
2.11 screenshot - images are consistently sized, original heights maintained
2.12 output - Stretches the original dimensions (glide:width is treated as MIN width)
<img src="whatever.jpg" width="400" height="200" ...
2.12 screenshot - images are all stretched to same width, heights are affected
I know this package isn't really intended for small images but setting up webp images with jpeg fallbacks is a pain and I'd rather let this package handle all of that.
Any chance the code can be updated so that small images are not stretched greater than their original dimensions? I think it would be more consistent with the current documentation which states "Passing glide:width will consider the width as a max width..."
The text was updated successfully, but these errors were encountered: