Solved

Picking a color from an image

Posted on 2013-01-21
4
311 Views
Last Modified: 2013-01-23
I know there are color pickers that let you chose a color from a grid or a gradient, but I'd like to let users click on some image on the page  and pick up the color at that point. Can anyone think of a way that JavaScript can pull in  this information?

Thanks
Steve
0
Comment
Question by:steva
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 19

Accepted Solution

by:
Rikin Shah earned 250 total points
ID: 38804330
0
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 250 total points
ID: 38804417
0
 
LVL 3

Expert Comment

by:Rabih
ID: 38804612
maybe COLORZILLA  can help. its a Firefox add-on.
0
 

Author Closing Comment

by:steva
ID: 38808868
Thanks!  The PHP solution looks like it will do the job.  

I don't think I can use COLORZILLA because I have no control over the browser type the client is running.  This is a site builder, of sorts, and the idea with the color picker is to let someone set a div background to the color of, perhaps, the curtains in an image somewhere on the page. But I can't guarantee they'll be running Firefox.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question