blueimp/JavaScript-Load-Image — Issue #3: subtle bug
Author: concept47
Created: 2012-02-28 00:37:39+00:00
State: open

There is a subtle bug that I'm running into here
https://github.com/blueimp/JavaScript-Load-Image/blob/master/load-image.js#L73

When i img.width is set it seems img.height is set as well (to something proportional) so that when it goes to execute the next line, it does the calculation with the already properly calculated height and it makes it way too short.

I only run into this situation when I run loadImage() twice on different items, I wish I had time to debug further, but for now I can fix this by assigning the height and width to temporary variables then assigning them at once.

just wanted to let you know.
Browser is Chrome 19 but it also happens in FF 10.