Commit 051ed47a by doszhang

dos

parent 76573a3a
......@@ -446,7 +446,6 @@ function bindUpload(that, ctx, myCanvas, index, callback, imgInfo) {
}
event.preventDefault();
var imgData = that.files[0];
console.log(imgData)
EXIF.getData(imgData, function () {
//获取旋转信息
var orientation = EXIF.getTag(this, "Orientation");
......@@ -466,6 +465,7 @@ function bindUpload(that, ctx, myCanvas, index, callback, imgInfo) {
var objectImg = new Image();
objectImg.crossOrigin = "Anonymous";
objectImg.setAttribute('crossOrigin', 'anonymous');
console.log(objectImg);
objectImg.onload = function () {
if (rotation === 90 || rotation === 270) {
width = objectImg.height;
......
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