fixes issue 68

This commit is contained in:
tim h 2022-12-04 20:19:34 -06:00
parent d49b68ae29
commit 986466f6d8

View file

@ -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 =