Copied to clipboard

Flag this post as spam?

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


  • bh 291 posts 976 karma points
    Nov 19, 2020 @ 15:52
    bh
    0

    Image Center Value?

    https://www.mydomain.com/media/esknykjz/example.jpg?center=0.6074074074074074,0.83&mode=crop&width=1600&height=0&rnd=132502546886700000
    

    In the backend how do I access the center value? 0.6074074074074074,0.83

    Here's how I get the image URL:

    Model.Value<IPublishedContent>("image").GetCropUrl(1600,0)
    
  • Nik 1413 posts 6212 karma points MVP 3x c-trib
    Nov 19, 2020 @ 16:13
    Nik
    0

    Hey Bh,

    Assuming that the property is a media item of type image in the Umbraco back office. the Centre point is governed by the blue dot in the Image Cropper property on there I think.

    Cheers

    Nik

  • bh 291 posts 976 karma points
    Nov 19, 2020 @ 16:19
    bh
    0

    @Nik I understand that. I'm trying to get the numerical value associated with that center point to use on my view.

  • Nik 1413 posts 6212 karma points MVP 3x c-trib
    Nov 19, 2020 @ 16:20
    Nik
    0

    I don't think there is a way unfortunately :-)

  • 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