Jump to content

color selector


drifter

Recommended Posts

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?

Thanks
Scott
Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.