|
|
|
@ -174,14 +174,14 @@ URL: https://github.com/Huddle/Resemble.js
|
|
|
|
|
var hiddenCanvas = document.createElement('canvas'); |
|
|
|
|
var imageData; |
|
|
|
|
|
|
|
|
|
if( scaleToSameSize && images.length == 1 ){ |
|
|
|
|
hiddenImage.width = images[0].width; |
|
|
|
|
hiddenImage.height = images[0].height; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var width = hiddenImage.width; |
|
|
|
|
var height = hiddenImage.height; |
|
|
|
|
|
|
|
|
|
if( scaleToSameSize && images.length == 1 ){ |
|
|
|
|
width = images[0].width; |
|
|
|
|
height = images[0].height; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
hiddenCanvas.width = width; |
|
|
|
|
hiddenCanvas.height = height; |
|
|
|
|
hiddenCanvas.getContext('2d').drawImage(hiddenImage, 0, 0, width, height); |
|
|
|
|