drifter Posted December 29, 2006 Share Posted December 29, 2006 I want to create a color selector from an image. Basically I want people upload a logo. I want to put something that I can select colors off of that.I know I can use HTML custom cursors to make an eye dropper. I know I can use the input type image to get x and y coords. but how is there a way using GD or something to get the color of an spot of an image and return the RGB?Also, does anyone know where a script like this might be so I can avoid reinventing the wheel if possible?ThanksScott Link to comment https://forums.phpfreaks.com/topic/32184-color-selector/ Share on other sites More sharing options...
makeshift_theory Posted December 29, 2006 Share Posted December 29, 2006 This would go in a javascript help forum. PHP works on a server-side basis meaning once it's processed and outputted there's nothing left for it to do. You would need a client-side language such as javascript to accomplish this. Take a look around google see what comes up. Link to comment https://forums.phpfreaks.com/topic/32184-color-selector/#findComment-149379 Share on other sites More sharing options...
drifter Posted December 29, 2006 Author Share Posted December 29, 2006 I know how to make a color selector in javascript - I am looking to make one where people can upload an image and I use an input type image to get an X,Y and then I want to get the color of that point.I did find imagecolorat() just now.My other question that I can not find an awnser to is if I can take an image and return the top 3 most used colors in the image??? Link to comment https://forums.phpfreaks.com/topic/32184-color-selector/#findComment-149385 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.