chengyin/albumcolors — pull request #4 by 5thWall (2013-02-15 06:03:02+00:00)
Title: Bigger image.

According to the w3c specs for the canvas element, it defaults to a
width of 300px and height of 150 px. This causes any image which excedes
these limits to return black pxiels for those regions outside of this
boundary.

http://www.w3.org/TR/2012/WD-html5-author-20120329/the-canvas-element.html#the-canvas-element

This fix sets the width and height of the canvas before drawing the image. Allowing albumcolors to properly analyse the image.