So I've been through all the php.net image functions and tried to figure out how to write a script that'll pull common colors out from an image and output a color palette.
I tried googling this but all I get is search results showing scripts that are doing this not explaining how to.
So if anyone can point me in the right direction on how to create a php script that'll generate an accurate color palette from an image, that would be awesome!
Here's something that I've been trying to figure out too.
This website pulls the main image colors (palette) and applys that towards the css styles:
Here's one that generates related colors (Another question would be, how would I go about doing this?)
Here's another similar one:
I know these aren't all specifically the same thing, but they all seem somewhat similar so I'm assuming if I learn one, it wouldn't be that much harder to create the others.