Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • pnr 131 posts 226 karma points
    Nov 23, 2015 @ 10:33
    pnr
    0

    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 :-)

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Nov 23, 2015 @ 10:39
    Jeavon Leopold
    0

    Hi there,

    You will need to use the GetCropUrl method, you can find examples in the documentation here in the "Sample code" section.

    Jeavon

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Nov 23, 2015 @ 10:41
    Dennis Aaen
    1

    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

  • 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.

Please Sign in or register to post replies