summaryrefslogtreecommitdiff
path: root/client/common
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-04-19 19:18:53 +0200
committerJules Laplace <julescarbon@gmail.com>2019-04-19 19:18:53 +0200
commit7446184ab7791dbf27015560ff47e78845d9883c (patch)
tree61e3f97f1cc72e9e63c5dc5b64966571b9209dc9 /client/common
parent9374f60bf3e812a06766753e171d54efdfd2371b (diff)
js
Diffstat (limited to 'client/common')
-rw-r--r--client/common/upload.helpers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/common/upload.helpers.js b/client/common/upload.helpers.js
index 4b38fb09..d0baab41 100644
--- a/client/common/upload.helpers.js
+++ b/client/common/upload.helpers.js
@@ -116,7 +116,7 @@ export function renderToCanvas(img, options) {
const initialScale = options.scale || 1
// Scale to needed to constrain canvas to max size
let scale = getScale(img.naturalWidth * initialScale, img.naturalHeight * initialScale, maxSide, maxSide, true)
- console.log(scale)
+ // console.log(scale)
// Still need to apply the user defined scale
scale *= initialScale
canvas.width = Math.round(img.naturalWidth * scale)