Copied to clipboard

Flag this post as spam?

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


  • Alexander Wagner 32 posts 162 karma points
    Sep 14, 2021 @ 13:05
    Alexander Wagner
    0

    GetCropUrl stopped working after upgrade to Umbraco 8.16

    Hi

    I just upgraded a project from Umbraco 8.13 to 8.16 and image GetCropUrl() stopped working.

    Attached is an image that got "cropped" using GetCropUrl with width 1920px and height 350px. When I look at the image in Backoffice everything looks good when selecting focal point, etc.

    Has anyone else noticed this? Is there some known bugs with Image processor?

    This is the is the image crop querystrings that renders the image below:

    careers-climbing-up.jpg?crop=0.20642296498537918,0.27333299045866039,0.067590600906093756,0.63843949150731727&cropmode=percentage&width=1920&height=350&rnd=132761049449030000

    "cropped" image

  • Alexander Wagner 32 posts 162 karma points
    Oct 11, 2021 @ 06:47
    Alexander Wagner
    0

    Hi!

    Has no-one had a problem with this issue? Haven't upgraded to 8.17 yet though.

  • Alexander Wagner 32 posts 162 karma points
    Oct 11, 2021 @ 09:15
    Alexander Wagner
    0

    Hmm, there seems to be a problem with ImageResizer that we use to show different sized images depending on view port. If i Removed ImageResizer then GetCropUrl worked as intended, but the images didn't resize on smaller viewports.

    Is there an Umbraco way to solve this? We don't really want to serve the full size hero image while on mobile devices (to take an example).

  • Alexander Wagner 32 posts 162 karma points
    Nov 17, 2021 @ 12:36
    Alexander Wagner
    0

    I found out that I could skip ImageResizer and use ImageProcessor instead to render different sourcesets depending on viewport. Just had to tweak my code a bit.

Please Sign in or register to post replies

Write your reply to:

Draft