the setup:
Document Type with Property from Data Type "Media Picker" (alias: map) is allowed to choose files from Data Type "Image Cropper" (alias: umbracoFile) in Media.
the problem:
How do I display the chosen image? (Picked from Media Picker, but already cropped by "Image Cropper" and present in the media library)
solutions tried:
A LOT.
What I thought should work, doesn't:
var imgId = Model.Content.GetPropertyValue<int>("map");
var img = Umbraco.TypedMedia(imgId);
var urlFirstVar = img.GetCropUrl("banner");
var urlSecondVar = img.GetCropUrl("umbracoFile", "banner");
var urlThirdVar = img.GetCropUrl(100,200);
Can't display Image (Media Picker -> Image Cropper)
Hi everyone,
the setup: Document Type with Property from Data Type "Media Picker" (alias: map) is allowed to choose files from Data Type "Image Cropper" (alias: umbracoFile) in Media.
the problem: How do I display the chosen image? (Picked from Media Picker, but already cropped by "Image Cropper" and present in the media library)
solutions tried: A LOT. What I thought should work, doesn't:
None of these is working... any ideas? Thanks.
is working on a reply...