Copied to clipboard

Flag this post as spam?

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


  • Pierre Thevenet 8 posts 79 karma points
    Jan 20, 2022 @ 14:10
    Pierre Thevenet
    0

    Get image cropper url

    Hi, I am trying to make the image cropper working. I defined crop sizes like this: image cropper with aliases headerBigDesktop and headerMeanDesktop

    Then I try to the the url via this instruction via a partial:

    var i2560 = ImageDesktop?.GetCropUrl("headerBigDesktop") ?? "";
    

    But the content of my var i2560 is now empty. I tried this version that works perfectly fine:

    var i2560 = ImageDesktop?.GetCropUrl(furtherOptions: "&format=jpg&width=2560&height=853") ?? "";
    

    But I can't have the correct cropped section when editing the data in the page.

    Can you help me with this issue ?

    Thank you in advance.

Please Sign in or register to post replies

Write your reply to:

Draft