Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is it possible to set a max height with Slimsy 2.0 not using the CropUrl attribute.
I have editors who tend to use vertical and horizontal images. Of course if I want a 1920 ratio that is easy for horizontal images but vertical slim images, I need to set a max height for images, then on my container I will make the background a nice black color. But this max height would also need to follow the width sizing as in a CSS width:auto. I need to use Slimsy for the nice compression.
On desktop max-height works as the 1080 height but on mobile I need it to still follow the width:auto to shrink with the screen.
We use this in most cases for horizontal images but for vertical tall thinner uploaded
images is crops part of the image out.
<img src="@Url.GetCropUrl(featureImage, 1920, 1080, quality:60, furtherOptions:"&format=auto")" data-srcset="@Url.GetSrcSetUrls(featureImage, 1920, 1080)" data-src="@Url.GetCropUrl(featureImage, 1920, 1080)" sizes="auto" class="lazyload" />
Thank in advance.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted