update img attribute

This commit is contained in:
Georg Fischer 2013-09-28 13:30:17 +02:00
parent 5bc03c7ce7
commit 939cb3545f

View File

@ -48,8 +48,8 @@ define(
function constrainImageSize( img )
{
var ratio = 0;
var image_width = img.width;
var image_height = img.height;
var image_width = img.naturalWidth;
var image_height = img.naturalWidth;
var image_area = image_width * image_height;
if ( image_area > max_image_area )