03-04-2013 10:34 PM - edited 03-04-2013 10:53 PM
I posted a question to Stackoverflow thinking my code was wrong but people are saying it looks fine.
What I'm doing is trying to take an image from
<input id="picture" type="file" accept="image/*" capture="camera" style="display:none;">
Then I capture the user's selection in the variable 'image' (I have verfied that it captured correctly even sent it to my server and saved to jpg with PHP, worked fine).
The problem occurs when I try to use the following code to resize the image
Something shows up on the canvas but it appears to be an extremely zoomed in version of the picture.