That's kind of like a simplified Art Direction, Slimmage is really designed for the image to be same across different devices but with the best sized image loaded depending on the device.
That said it's probably possible using the Slimmage API and appending your images using JavaScript rather than having them Slimmed automatically, see here for more info
Swap images with different cropper sizes
Hi,
Is there any way with Slimsy to avoid the downloading of not visible images?
I have an image with different sizes(different croppers) that will be displayed either on mobile or on desktop.
Here is the code:
<img class="visible-mobile" src="@Model.Image.Cropper.GetResponsiveCropUrl(317,238)" alt="" />
<img class="visible-desktop" src="@Model.Image.Cropper.GetResponsiveCropUrl(147, 363)" alt="" />
Basically, what I need is to avoid the downloading for an image that will not be displayed.
Thanks
That's kind of like a simplified Art Direction, Slimmage is really designed for the image to be same across different devices but with the best sized image loaded depending on the device.
That said it's probably possible using the Slimmage API and appending your images using JavaScript rather than having them Slimmed automatically, see here for more info
is working on a reply...