Extend umb-imaging-thumbnail with a property to disable checkerboard background #23177
Replies: 2 comments 7 replies
-
It's not a bad idea to extend the component - good idea.
It's been possible to enable HMAC since Umbraco 12: #14181 The difference from v12 to v17 is that an HMAC salt is being generated by default and placed into the appsettings template for new installs. Of course, you can remove the generated HMAC again to get back to the old behavior. I just want to make sure you are aware of that fact. Packages must be aware of HMAC to work on all setups, and in fact, we discovered a few packages that weren't compatible with HMAC that had to be upgraded. But you know your setup the best and can turn on and off features as it works best for you. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks again for raising this, @frederiktoft — it's in. 🎉 #23178 (merged) makes the checkerboard opt-out, and tidies the component up along the way:
The upshot is you shouldn't need to drop down to This ships in 17.6 (and 18.1 on the v18 line). I'm also adding a short Working with Media guide to the docs — covering your exact block-view-with-a-media-key scenario — which goes live alongside the release. Let me know how it works out once 17.6 lands! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After the HMAC requirement for images in the backoffice was introduced, we have been struggling a bit with showing images as it took a lot of code to do this with
UmbImagingRepository.After replies in this thread:
https://forum.umbraco.com/t/webp-middleware-and-hmacsecretkey/7786
It was recommended to use
umb-imaging-thumbnail, but it has a major flaw. The reason is that shows a checkerboard pattern in the background of transparent images on purpose. This makes the component effectively useless used in places as block grid elements where its supposed to show a representation of the content that the end user sees.So extending
umb-imaging-thumbnailwith a property/parameter to disable the checkerboard background, would make this component far more useful. Especially if its the component thats officially recommend to be used in the backoffice, it would make sense to do so.Beta Was this translation helpful? Give feedback.
All reactions