bump upscale factor
This commit is contained in:
parent
c657d5cce4
commit
b3a47c845a
1 changed files with 2 additions and 2 deletions
|
|
@ -11,8 +11,8 @@ async (imgString) => {
|
|||
};
|
||||
const img = await loadImage();
|
||||
const canvas = document.createElement("canvas");
|
||||
canvas.width = img.width * 1.5;
|
||||
canvas.height = img.height * 1.5;
|
||||
canvas.width = img.width * 2;
|
||||
canvas.height = img.height * 2;
|
||||
const ctx = canvas.getContext("2d");
|
||||
if (!ctx) {
|
||||
return new Error("could not get canvas context");
|
||||
|
|
|
|||
Loading…
Reference in a new issue