Copied to clipboard

Flag this post as spam?

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


  • Tobias Morf 80 posts 183 karma points
    Jul 07, 2022 @ 10:06
    Tobias Morf
    0

    v9: uSkinned problems with box pad on Images

    Hello there,

    Sadly I've came to conslusion that box pad is not working for uSkinned. Normaly when I enable box pad on a wider image, the image is rendered with padding, so everything is shown, that's not the case with uSkinned on Umbraco 9.

    Is this a already known bug?

    For reference:

    enter image description here

    As you can see, the &mode=boxpad is even rendered in the picture's src but doesn't work.

    enter image description here

  • Marc Love (uSkinned.net) 432 posts 1691 karma points
    Jul 07, 2022 @ 11:16
    Marc Love (uSkinned.net)
    100

    Hi Tobias,

    Thank you for pointing this out. I have done a bit of digging and can see that the querystring parameter for box pad is now rmode, rather than mode. See here:

    https://github.com/SixLabors/ImageSharp.Web/blob/main/src/ImageSharp.Web/Processors/ResizeWebProcessor.cs

    We will be releasing an update for uSkinned Site Builder for Umbraco 10 and will make sure this update is included.

    If you want to update the underlying source code of your own installation to fix this now you will need to edit:

    ~/Views/Partials/uSkinned/MiscPageElements/Image.cshtml and change the querystring parameter when Box Pad is applied to 'rmode'

    If changing source code make sure you follow this guide:

    https://uskinned.net/support/how-to-branch-away-from-our-codebase-to-your-own-codebase/

    Kind regards,

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft