Copied to clipboard

Flag this post as spam?

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


  • David Amri 214 posts 740 karma points
    Feb 20, 2019 @ 10:56
    David Amri
    0

    imageCropAnchor not overriding crop anchor position

    Hi,

    I'm trying to crop a image with a different anchor crop position but the the image url renders the standard center crop anchor?

    croppedImage.GetCropUrl(width: 615, height: 405, imageCropAnchor: ImageCropAnchor.Bottom);
    

    The output looks like this:

    /media/1504/croppedImage.jpg?anchor=center&mode=crop&width=615&height=405&rnd=131896870400000000

    Best regards

  • David Amri 214 posts 740 karma points
    Feb 20, 2019 @ 11:54
    David Amri
    100

    So I was missing the .Url helper... now it works.

    croppedImage.Url.GetCropUrl(width: 615, height: 405, imageCropAnchor: ImageCropAnchor.Bottom);
    
Please Sign in or register to post replies

Write your reply to:

Draft