Search the Community
Showing results for tags 'hex'.
-
Last week I mentioned the new Actions menu on MediaHub input fields. I started with Copy to field function. Next up is Palette. It's a free companion module that analyses image colours and lets you copy a hex value from a photo. Why I built it I was building a site with a hero banner consisting of a photo on the left and a solid colour block on the right. I needed colour options that complemented the image and a quick way to grab a hex code and paste it into a block colour field. Nothing in my usual workflow did that without leaving the admin or opening the image through external tools. What it does Palette analyses an image and surfaces the most prominent colours, with an indication of how much of the image each one accounts for. In the module settings you can choose how many swatches to show (anywhere from 1 to 10). Click a colour to copy its hex code to the clipboard, then paste it wherever you need it (a colour field, theme token, inline style, etc.). It does not write to a field for you. That part is still manual for now. There are also a few colour-wheel views if you want to explore alternatives, plus a custom picker if you already know roughly what you’re after. How to use it Install the MediaHub Palette companion module (see below). Set your preferred swatch count in the module config. On a MediaHub field card, open Actions → Generate palette on an image. Pick a swatch, copy the hex, paste it where you need it. It also appears on library asset page so you can explore a palette from the MediaHub library. Get it Palette is free for Media Hub users. It will shortly live as a separate download in your licence account area. Because it's fairly niche, I didn't bundle it inside the main MediaHub package. What’s not in it (yet) Extracted colours are not stored on the asset and are not exposed through the MediaHub API at the moment. I’m considering that for a future release. E.g. saving a palette against an asset or piping a chosen colour into a custom field automatically. For now it’s a practical “analyse this image and give me copyable hex codes” tool. Cheers P