Commit e1a560c5 by doszhang

dos

parent 8ca8244b
...@@ -211,7 +211,7 @@ $(document).ready(function () { ...@@ -211,7 +211,7 @@ $(document).ready(function () {
objectImg.crossOrigin = "Anonymous"; objectImg.crossOrigin = "Anonymous";
objectImg.setAttribute('crossOrigin', 'anonymous'); objectImg.setAttribute('crossOrigin', 'anonymous');
objectImg.onload = function () { objectImg.onload = function () {
var scale = 1, var scale = 1.3,
width = objectImg.width * 2, width = objectImg.width * 2,
height = objectImg.height * 2; height = objectImg.height * 2;
if (rotation === 90 || rotation === 270) { if (rotation === 90 || rotation === 270) {
...@@ -220,7 +220,7 @@ $(document).ready(function () { ...@@ -220,7 +220,7 @@ $(document).ready(function () {
} }
uploadedImg = document.createElement('CANVAS'); uploadedImg = document.createElement('CANVAS');
var uploadctx = uploadedImg.getContext('2d'); var uploadctx = uploadedImg.getContext('2d');
var scale = 1; var scale = 1.3;
if (width < height) { if (width < height) {
scale = 1000 / width; scale = 1000 / width;
} else { } else {
......
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