Copied to clipboard

Flag this post as spam?

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


  • Lars Heesakkers 38 posts 194 karma points
    Apr 05, 2022 @ 08:52
    Lars Heesakkers
    0

    Cropped url not showing cropped image

    Hello Everyone,

    I am trying to upgrade some of my websites from Umbraco 7/8 to 9. But I have a problem with the images. I am calling the following function:

    image.GetCropUrl(width: width, height: height)
    

    Which returns the media url as expected:

    http://domain.test/media/9195/image.jpg?width=1000&height=100
    

    But it just seems to ignore all query parameters and show me the original (uncropped) image.

    It does work on another umbraco 9 website I have, and I don't see any differences in configuration.

    Any ideas are welcome!

  • Chad 1 post 72 karma points MVP 4x c-trib
    Apr 11, 2022 @ 01:28
    Chad
    0

    Hi

    I think this is an issue in the Umbraco.StorageProvider's Azure Image Cache as when disabled, the crops work. It would be worth logging an issue in github.

  • Lars Heesakkers 38 posts 194 karma points
    Apr 11, 2022 @ 06:04
    Lars Heesakkers
    0

    Hi Chad,

    I am not sure we use the Azure Image Cache. Unless Umbraco uses it? If so, how can I disable it to check if that works?

    ~Lars

Please Sign in or register to post replies

Write your reply to:

Draft