Copied to clipboard

Flag this post as spam?

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


  • Martin Rud 261 posts 1022 karma points c-trib
    Jun 20, 2024 @ 15:32
    Martin Rud
    0

    How to get image url with respect to focal point and not using the predefined crops?

    Hi,

    I want to get the url of an image. Right now I use something like:

    image.Url()?width=768&height=512
    

    But I want the image to be centering to the focal point that the editor has might set. How to do that?

    I have tried adding &anchor=center or &center=true and I have tried to find out if Url.GetCropUrl(image) could be used, but can't seem to find any parameters working for it.

    Umbraco version 13.3.0

  • Yakov Lebski 591 posts 2347 karma points
    Jun 20, 2024 @ 16:26
    Yakov Lebski
    100

    should work for you

    GetCropUrl(width:768,height:512)
    
  • Martin Rud 261 posts 1022 karma points c-trib
    Jun 20, 2024 @ 18:45
    Martin Rud
    0

    Thanks - you are right. I think my testing was not fully qualified 😊

Please Sign in or register to post replies

Write your reply to:

Draft