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
I have an image called "image" and the cropped version is called "SideImage". How can I use the cropped version of the image? The image is not saved in the media area.
I tried using .GetCropUrl() but it didn't work. Do I need to use a using or a package?
It's a while since I've used an ImageCropper as a property directly on a Document Type, I usually use a Media Picker (and MediaPicker3 allows you to access crop functionality) BUT
I think you can use GetCropUrl(), there is a method here:
that is a UrlHelper extensions, and seems to take the 'value' of the ImageCropper property, and then the name of the crop (and lots of other optional values)
So hopefully something like this?
<img src="@Url.GetCropUrl(Model.Value<ImageCropperValue>("bild"), "yourCropAlias")" />
Namespace would be: Umbraco.Extensions
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted