3

What is the best way to get the color histogram of a html page as rendered, when I have the html and css files locally? I can think of a screen capture and then analyzing it using some graphic tool, but is there a more direct way to do this, for example, something like calculating it from the html and css information using JavaScript?

3
  • Are you talking about grabbing a color of screen? Google for ColorPic Commented May 3, 2013 at 10:19
  • Cool idea. Did you find anything on this? Commented Jul 28, 2013 at 13:03
  • 2
    You could use html2canvas.hertzen.com to render the page body into a canvas and then access the rendered pixel via the canvas image data. net.tutsplus.com/tutorials/javascript-ajax/… Commented Jul 30, 2013 at 5:31

1 Answer 1

2

I am not sure about javascript, but you can use python with Qt and webkit as described in this post

There is also a python package inspired by the post

Hope that helps

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.