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 used Umbraco Image Cropper as a generic property, and now I need to render the cropped image in Razor. But how do i do that? (When i get the parameter from the generic property i razor I get some Json)
Thanks very much in advance :-)
Hi there,
You will need to use the GetCropUrl method, you can find examples in the documentation here in the "Sample code" section.
Jeavon
Hi pnr,
Have you seen the documentation for the image cropper, https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/image-cropper here you will find some examples on how to render the image.
Another good thing to watch is the uHangout episode with Jeavon Leopold about the image cropper you can find it here.
http://uhangout.co.uk/videos/ep030-with-jeavon-leopold-responsive-imaging-cropping/
Hope this helps,
/Dennis
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Getting cropped image from Generic Property
I have used Umbraco Image Cropper as a generic property, and now I need to render the cropped image in Razor. But how do i do that? (When i get the parameter from the generic property i razor I get some Json)
Thanks very much in advance :-)
Hi there,
You will need to use the GetCropUrl method, you can find examples in the documentation here in the "Sample code" section.
Jeavon
Hi pnr,
Have you seen the documentation for the image cropper, https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/image-cropper here you will find some examples on how to render the image.
Another good thing to watch is the uHangout episode with Jeavon Leopold about the image cropper you can find it here.
http://uhangout.co.uk/videos/ep030-with-jeavon-leopold-responsive-imaging-cropping/
Hope this helps,
/Dennis
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.