wesmiler 6 tahun lalu
induk
melakukan
349f578e29
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      public/static/weixin/lib/cropper/cropper.js

+ 3 - 2
public/static/weixin/lib/cropper/cropper.js

@@ -148,8 +148,9 @@
 
     function getSourceCanvas(image, data) {
         var canvas = $('<canvas>')[0],
-            context = canvas.getContext('2d'),
-            width = data.naturalWidth,
+            context = canvas.getContext('2d');
+            context.translate(0.5, 0.5);
+        var width = data.naturalWidth,
             height = data.naturalHeight,
             rotate = data.rotate,
             rotated = getRotatedSizes({