Fixes #2 and removes unnecessary console.log

pan-tool
0Tick 2023-05-24 23:31:35 +02:00
parent 9a5ca741bf
commit 038d5731ba
3 changed files with 4 additions and 4 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
__pycache__

File diff suppressed because one or more lines are too long

View File

@ -207,7 +207,7 @@ class File_send_class {
{ name: "img2img", titel: "Type", values: ["Image2Image Init Image", "Image2Image Inpaint Image"] },
],
on_finish: function (params) {
_this.sendImageCanvasEditor(params.txt2img === "Image2Image Init Image" ? "img2img_img2img" : "img2img_inpaint")
_this.sendImageCanvasEditor(params.img2img === "Image2Image Init Image" ? "img2img_img2img" : "img2img_inpaint")
}
};
this.POP.show(settings);
@ -242,7 +242,6 @@ class File_send_class {
var opener = new File_open_class()
Array.from(window.parent.gradioApp().querySelector('#tabs').querySelectorAll('button')).find(button => button.textContent === 'Mini Paint ').click();
var canv = document.createElement("canvas");
console.log(img, width, height)
canv.width = width;
canv.height = height;
var ctx = canv.getContext("2d");