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:
As you can see, the &mode=boxpad is even rendered in the picture's src but doesn't work.
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:
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:
As you can see, the &mode=boxpad is even rendered in the picture's src but doesn't work.
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
is working on a reply...