increase png export quality by 1.5

This commit is contained in:
Bernard Xie 2022-12-14 10:35:15 -08:00
parent bf139735bf
commit abb86e1c53
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C

View file

@ -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");