tiny fix for upscaling

This commit is contained in:
tim h 2022-12-01 20:00:33 -06:00
parent c63003e1cf
commit 8c777fee04

View file

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