wesmiler 6 yıl önce
ebeveyn
işleme
a43c09618c
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      public/static/weixin/lib/cropper/cropper.js

+ 1 - 1
public/static/weixin/lib/cropper/cropper.js

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