Commit 4587a529 by doszhang

dos

parent 051ed47a
...@@ -463,8 +463,8 @@ function bindUpload(that, ctx, myCanvas, index, callback, imgInfo) { ...@@ -463,8 +463,8 @@ function bindUpload(that, ctx, myCanvas, index, callback, imgInfo) {
imgInfo.rotation = 0; imgInfo.rotation = 0;
} }
var objectImg = new Image(); var objectImg = new Image();
objectImg.crossOrigin = "Anonymous"; // objectImg.crossOrigin = "Anonymous";
objectImg.setAttribute('crossOrigin', 'anonymous'); // objectImg.setAttribute('crossOrigin', 'anonymous');
console.log(objectImg); console.log(objectImg);
objectImg.onload = function () { objectImg.onload = function () {
if (rotation === 90 || rotation === 270) { if (rotation === 90 || rotation === 270) {
......
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