Bigger image. #4

Merged
merged 1 commit into from Feb 19, 2013

Conversation

Projects
None yet
2 participants
@5thWall
Contributor

5thWall commented Feb 15, 2013

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.

Set canvas width and height before adding 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

chengyin added a commit that referenced this pull request Feb 19, 2013

@chengyin chengyin merged commit 86db892 into chengyin:master Feb 19, 2013

@chengyin

This comment has been minimized.

Show comment
Hide comment
@chengyin

chengyin Feb 19, 2013

Owner

Thank you, sir!

Owner

chengyin commented Feb 19, 2013

Thank you, sir!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment