Copied to clipboard

Flag this post as spam?

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


  • stephen 83 posts 124 karma points
    Aug 07, 2015 @ 14:11
    stephen
    0

    Image Cropper Focal Point

    Trying to use the focal point.

    { "focalPoint": { "left": 0.51048951048951052, "top": 0.25333333333333335 }, "src": "/media/31318/myimage.jpg", "crops": [ { "alias": "crop143_143", "width": 143, "height": 143, "coordinates": { "x1": 0, "y1": 0, "x2": 0, "y2": 0.52292387543252594 } } ] }
    

    but makes no difference to the image.

    <img src="@imgThmb.GetCropUrl(150, 150,"","150_150",100,ImageCropMode.Crop,null,true,true,null,focalVal,null,true) " alt="@imgTitle" />
    

    where (string) focalVal creates &left=val&top=val

    and image src =

    /media/31318/myimage.jpg?mode=crop&quality=100&width=150&height=150&left=0.510489510489511&top=0.253333333333333

Please Sign in or register to post replies

Write your reply to:

Draft