wesmiler 6 lat temu
rodzic
commit
5f11d346c7
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      public/static/weixin/lib/cropper/cropper.js

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

@@ -162,8 +162,8 @@
             canvas.width = rotated.width;
             canvas.height = rotated.height;
             context.save();
-            context.translate(0.5, 0.5);
-            // context.translate(rotated.width / 2, rotated.height / 2);
+            // context.translate(0.5, 0.5);
+            context.translate(rotated.width / 2, rotated.height / 2);
             context.rotate(rotate * Math.PI / 180);
             context.drawImage(image, -width / 2, -height / 2, width, height);
             context.restore();