Dynamic static sizes of images?
# help-with-umbraco
m
I want to be able to set the width and height based on media query size. I have setup the below code and it works, serves the right image and at the right sizeing BUT it is cropping the image not just shrinking them. What do I need to change to get it to just resize the image and not cropp it, if that is even a function it can do?
d
Hi there! You should be able to pass a
CropMode
parameter to the
.GetCropUrl
method. It's something you likely need to play around with a little bit (that's my experience at least)
m
Thanks, I was able to use ImageCropMode.Max to get what I need.
3 Views