Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Thanks rvighne, in theory this sounds like it will work. How should I display my image though? Like <canvas><img/></canvas>? Also, these images will all have the same class. Am I right in assuming I can use getElementByClass? Commented Jun 20, 2013 at 17:01
  • EDIT: Nevermind about getting element by class name, I needed to use document.getElementsByClassName. Commented Jun 20, 2013 at 17:17
  • Loading the image into canvas is just that, it is loaded into the canvas object. There is no <img> in canvas at that point. Commented Nov 13, 2013 at 0:54
  • the brightness return NaN as a result. Anybody knows why? Commented Jun 25, 2014 at 4:17
  • That's quite strange. I will try to diagnose the problem. Commented Jun 26, 2014 at 14:39