From 8c777fee04586f64ebb1e96c33daead8bacbdff2 Mon Sep 17 00:00:00 2001 From: tim h Date: Thu, 1 Dec 2022 20:00:33 -0600 Subject: [PATCH] tiny fix for upscaling --- js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/index.js b/js/index.js index 539afbb..1640d45 100644 --- a/js/index.js +++ b/js/index.js @@ -787,7 +787,7 @@ async function upscaleAndDownload() { var upscaler = document.getElementById("upscalers").value; var url = document.getElementById("host").value + "/sdapi/v1/extra-single-image/"; - var imgdata = croppedCanvas.toDataURL("image/png"); + var imgdata = croppedCanvas.canvas.toDataURL("image/png"); var data = { "resize-mode": 0, // 0 = just resize, 1 = crop and resize, 2 = resize and fill i assume based on theimg2img tabs options upscaling_resize: upscale_factor,