Commit 9e1f6533 by doszhang

dos

parent b1968931
......@@ -465,7 +465,7 @@ function bindUpload(that, ctx, myCanvas, index, callback, imgInfo) {
img.setAttribute('crossOrigin', 'anonymous');
console.log(img);
img.onload = function () {
if (rotation === 90 || rotation === 270) {
if (imgInfo.rotation === 90 || imgInfo.rotation === 270) {
width = img.height;
height = img.width;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment