Commit b3f33a96 by doszhang

dos

parent acf24efa
...@@ -222,9 +222,9 @@ $(document).ready(function () { ...@@ -222,9 +222,9 @@ $(document).ready(function () {
var uploadctx = uploadedImg.getContext('2d'); var uploadctx = uploadedImg.getContext('2d');
var scale = 1; var scale = 1;
if (width < height) { if (width < height) {
scale = 500 / width; scale = 2000 / width;
} else { } else {
scale = 500 / height; scale = 2000 / height;
} }
// uploadctx.scale(scale, scale); // uploadctx.scale(scale, scale);
uploadedImg.width = width; uploadedImg.width = 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