Solved

Picking a color from an image

Posted on 2013-01-21
4
308 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
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

803 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