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
Just got the latest version and having some issues:
src="@Url.GetCropUrl(Model.Image, 350, 320, quality:30, imageCropMode:ImageCropMode.BoxPad)"
Mode is still rendered as mode=crop no matter what value i set ImageCropMode at...
I had some similar problems in the past.
Actually mainly when I was wanting to do some custom stuff to the cropped images such as render them as webP.
I ended up creating a static image helper class to generate the correct crop url.
I think you could get away with doing the same.
Create a static method that will retunr the correct image url.
Pass your umbraco image and crop name into the method.
Get the prob url and examine it.
If this is wrong you can so a replace to hack the correct data into the query string.
Then return the fixd url.
imageUrl = image.GetCropUrl(cropAlias: cropAlias);
webpImageUrl = imageUrl + "&format=webp&quality=80";
As you can see I did a very similar thing.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted