Fixes #2 and removes unnecessary console.log
parent
9a5ca741bf
commit
038d5731ba
|
|
@ -0,0 +1 @@
|
||||||
|
__pycache__
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -207,7 +207,7 @@ class File_send_class {
|
||||||
{ name: "img2img", titel: "Type", values: ["Image2Image Init Image", "Image2Image Inpaint Image"] },
|
{ name: "img2img", titel: "Type", values: ["Image2Image Init Image", "Image2Image Inpaint Image"] },
|
||||||
],
|
],
|
||||||
on_finish: function (params) {
|
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);
|
this.POP.show(settings);
|
||||||
|
|
@ -241,8 +241,7 @@ class File_send_class {
|
||||||
var height = img.naturalHeight
|
var height = img.naturalHeight
|
||||||
var opener = new File_open_class()
|
var opener = new File_open_class()
|
||||||
Array.from(window.parent.gradioApp().querySelector('#tabs').querySelectorAll('button')).find(button => button.textContent === 'Mini Paint ').click();
|
Array.from(window.parent.gradioApp().querySelector('#tabs').querySelectorAll('button')).find(button => button.textContent === 'Mini Paint ').click();
|
||||||
var canv = document.createElement("canvas");
|
var canv = document.createElement("canvas");
|
||||||
console.log(img, width, height)
|
|
||||||
canv.width = width;
|
canv.width = width;
|
||||||
canv.height = height;
|
canv.height = height;
|
||||||
var ctx = canv.getContext("2d");
|
var ctx = canv.getContext("2d");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue