Commit 34750c72 by doszhang

dos

parent 945e215b
...@@ -465,13 +465,11 @@ function bindUpload(that, ctx, myCanvas, index, callback, imgInfo) { ...@@ -465,13 +465,11 @@ function bindUpload(that, ctx, myCanvas, index, callback, imgInfo) {
img = new Image(); img = new Image();
img.crossOrigin = "Anonymous"; img.crossOrigin = "Anonymous";
img.setAttribute('crossOrigin', 'anonymous'); img.setAttribute('crossOrigin', 'anonymous');
console.log(img);
img.onload = function () { img.onload = function () {
if (imgInfo.rotation === 90 || imgInfo.rotation === 270) { if (imgInfo.rotation === 90 || imgInfo.rotation === 270) {
width = img.height; width = img.height;
height = img.width; height = img.width;
} }
console.log(img);
drawImage(ctx, myCanvas, img, imgInfo); drawImage(ctx, myCanvas, img, imgInfo);
callback(img); callback(img);
......
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