If your blogImage property is an Image Cropper property type, no this does not return an IPublishedContent response, it will be a ImageCropper model (I can't remember it's exact name).
However, if blogImage is a single media picker, then it should return IPublished Content.
Can you share a bit more details about what blogImage actually is?
Use ImageCropper in dynamic context
Hello
I used ImageCropper in a Typed context, but in my case i need it in an dynamic context.
My Sample Code:
but MediaItem is null, is Umbraco.ImageCropper not returning IPublishedContent?
Has anyone a dynamic solution? Thank ins advance.
I think you need to use
metiaItem.Url().GetCropUrl("Hauptbild")
Hi Hubert,
If your blogImage property is an Image Cropper property type, no this does not return an IPublishedContent response, it will be a ImageCropper model (I can't remember it's exact name).
However, if blogImage is a single media picker, then it should return IPublished Content.
Can you share a bit more details about what blogImage actually is?
Cheers
Nik
Thanks for the help, i found it out now:
is working on a reply...