From abb86e1c53551ec315c543534226197d46a26ddf Mon Sep 17 00:00:00 2001 From: Bernard Xie Date: Wed, 14 Dec 2022 10:35:15 -0800 Subject: [PATCH] increase png export quality by 1.5 --- lib/png/generate_png.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/png/generate_png.js b/lib/png/generate_png.js index 133cadba8..735100662 100644 --- a/lib/png/generate_png.js +++ b/lib/png/generate_png.js @@ -11,8 +11,8 @@ async (imgString) => { }; const img = await loadImage(); const canvas = document.createElement("canvas"); - canvas.width = img.width; - canvas.height = img.height; + canvas.width = img.width * 1.5; + canvas.height = img.height * 1.5; const ctx = canvas.getContext("2d"); if (!ctx) { return new Error("could not get canvas context");