Basically
$average = new Imagick( $file );
$average->quantizeImage( $numColors, Imagick::COLORSPACE_RGB, 0, false, false ); //Reduce the amount of colors to 10
$average->uniqueImageColors(); //Only save one pixel of each color
I've thought about making this for a long time to help me with painting, but in that case I think to be useful you need a bit more ways to see the data -- mostly, the thing that is the most important is value. So to get something useful out of it you need a distribution of the hues conditioned value.
And for design, the problem is a bit different. You may have a good looking palette, but 'inverting it' for dark mode is not trivial, and neither are gradients, getting intermediate colors, or getting a shifted hue.
It's called inspiration so it's fulfilling its promise, I'm just curious what are your thoughts on these since you obviously thought a lot about it.
Small snag, some UTF8 things are going on with some colour names, I am sure you know and have cursed accordingly.
I like OKLCH colours and the ability to mix them in interesting ways using CSS things. This means I don't do hex codes for colours in CSS. I can translate though, however, soon some people will demand OKLCH, so you might as well add it in, trying to get it natural with the picker.
I appreciate the masters but I wonder how this would work using other sources, for example, Sunday newspaper supplements from the last century, and their glossy adverts, which were to a higher standard than what we get today.
1. You have used the RGB hue wheel not the RYB hue wheel. The later defines the complementary pairs red/green, blue/orange, yellow/purple which are more useful for an artist when evaluating hue. To those who would say that the difference between RTGB and RYB complementaries is subjective, I would point out that the red/green, blue/orange, yellow/purple pairs have been known by artists since before Newton first expressed hue on a wheel.
2. I think it is fair to assume an artist has a consistent color pallet, but I'm not sure that a genre would.
3. User S0und has implied that paintings have changed too much from their point of creation for your work to be valid. For sure it is true that paintings have oxidized, accumulated multiple layers of dust-attracting varnish and been damaged by UV exposure. However, the relative difference between the colors they have used remains almost the same, and this is where the value of your work lays.
4. The key problem of visualizing the color of a painting is its dimensionality. A standard histogram does a super fine job at expressing the lightness value of an image. A radial hue histogram does the same for the hue/saturation. But there is no 2D graphical visualization that does both. Personally, I would go further and visualize separately the hue, saturation and lightness signatures of the artists. For most pre-modern painters, the lightness values closely mirrored their saturation values. Artists like Gericault and most of the Impressionists learned to separate them.
BTW... do you know this website?: https://www.webexhibits.org/pigments/intro/history.html
See also: https://amandahinton.com/blog/creating-a-color-palette-from-...
For Monet, many of the paintings have an important color highlight (e.g., the orange sun), which isn't captured in any of the palettes.
Needs more tweaking.
1) Aren't "Modernism" and "Modernismo" the same thing? I'm a Spanish speaker and from my POV they are
2) Selected "Naïve Art" style and it's broken (images not loading). Probably something to do with the diaeresis
Let me know if you ever create an API endpoint.
Spam filters are going to have to get a lot more sophisticated. "Slop" filters, even.
AI generated arts, IMHO, is an economic F-U to the people who spend real years of their lives to train in arts, and to the people who spend more time after that to teach.