?
Solved

Picking a color from an image

Posted on 2013-01-21
4
Medium Priority
?
318 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 1000 total points
ID: 38804330
0
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 1000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
This article discusses how to create an extensible mechanism for linked drop downs.
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

752 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