From 9534a8f1566a47324ba53d5057928169107f9ae8 Mon Sep 17 00:00:00 2001 From: nailuoGG Date: Fri, 29 Nov 2019 20:42:55 +0800 Subject: [PATCH] fix Kujiale-Mobile/Painter#201 --- painter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/painter.js b/painter.js index a434af9..cb352b2 100644 --- a/painter.js +++ b/painter.js @@ -178,6 +178,8 @@ Component({ setTimeout(() => { wx.canvasToTempFilePath({ canvasId: 'k-canvas', + destWidth: that.canvasWidthInPx, + destHeight: that.canvasHeightInPx, success: function (res) { that.getImageInfo(res.tempFilePath); },