From 986466f6d864ed598e53b621a5d9fac977067b9f Mon Sep 17 00:00:00 2001 From: tim h Date: Sun, 4 Dec 2022 20:19:34 -0600 Subject: [PATCH] fixes issue 68 --- js/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/index.js b/js/index.js index 822a4e1..6ffb60e 100644 --- a/js/index.js +++ b/js/index.js @@ -774,7 +774,14 @@ async function upscaleAndDownload() { // get cropped canvas, send it to upscaler, download result var upscale_factor = 2; // TODO: make this a user input 1.x - 4.0 or something var upscaler = document.getElementById("upscalers").value; - var croppedCanvas = cropCanvas(uil.canvas); + var croppedCanvas = cropCanvas( + uil.getVisible({ + x: 0, + y: 0, + w: imageCollection.size.w, + h: imageCollection.size.h, + }) + ); if (croppedCanvas != null) { var upscaler = document.getElementById("upscalers").value; var url =