Browse Source

Merge branch 'master' of https://github.com/JonWallsten/Resemble.js into JonWallsten-master

pull/96/head
james.cryer 8 years ago
parent
commit
8c5eaf42cf
  1. 10
      resemble.js

10
resemble.js

@ -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);

Loading…
Cancel
Save