Copied to clipboard

Flag this post as spam?

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


  • Malthe Petersen 6 posts 86 karma points
    Dec 21, 2016 @ 14:15
    Malthe Petersen
    0

    Image cropper zoom out

    Hi Umbraco Forum.

    I would like to zoom out with the image cropper so that I can have a specific crop and make the image fit the specific crop.

    For example: I have a crop 300px x 200px. My picture is 300px x 300px.

    I would like my picture to fit the crop. Is there a way to do that with the image cropper?

    Regards Malthe.

  • Søren Kottal 530 posts 3521 karma points MVP 2x c-trib
    Dec 21, 2016 @ 21:08
    Søren Kottal
    0

    Yes, use the crop mode Pad. Like img.jpg?width=300&height=200&mode=pad.

    You can also define crop mode when you use .GetCropUrl(). Add the parameter imageCropMode and set it to Pad.

  • Malthe Petersen 6 posts 86 karma points
    Jan 13, 2017 @ 12:12
    Malthe Petersen
    0

    Hey Søren! Sorry I haven't replied earlier! Thank you so much for the help.

    Im using the .GetCropUrl, but still can't get it to work. Could you maybe give an example on how to use it on .GetCropUrl?

    Regards Malthe!

  • 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