From 1a9fb730fb818cee003f40ecf9da63759f8b318c Mon Sep 17 00:00:00 2001 From: eJay Date: Tue, 1 Sep 2020 10:29:43 +0800 Subject: [PATCH] fix: replace canvas.toBlob the second parameter to file.type --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index f863279..50cb68a 100644 --- a/src/utils.js +++ b/src/utils.js @@ -188,7 +188,7 @@ function handleFile(file, options, doSquash) { blob => { resolve(new File([blob], file.name)); }, - "image/jpeg", + file.type, quality ); })