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 we use the thumbnail it's ok. We take the height define in the filter
filters:
# use and setup the "thumbnail" filterthumbnail:
# set the thumbnail size to "32x32" pixelssize: [32, 32]
But with the relative filter we can't determinate the height of the image.
big_filter:
filters:
relative_resize:
widen: 735
If we have only one dimension. We need to push the height and width of the original image
With that the browser manages to determine the ratio of the image.
An idea -> with the data_root and the path of the image we can retrieve the width and height.
getimagesize($this->data_root.$path)[3];
The text was updated successfully, but these errors were encountered:
To avoid the Cumulative Layout Shift we should add the image and height attribute.
When we use the
thumbnail
it's ok. We take the height define in the filterBut with the relative filter we can't determinate the height of the image.
If we have only one dimension. We need to push the height and width of the original image
With that the browser manages to determine the ratio of the image.
An idea -> with the
data_root
and thepath
of the image we can retrieve the width and height.getimagesize($this->data_root.$path)[3];
The text was updated successfully, but these errors were encountered: