mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
auto-display input-media on send-to
Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
- z-image single-file loader
|
||||
- hip device name detection
|
||||
- force align width/height to vae scale factor
|
||||
- meituan-longca-image-edit missing image param
|
||||
|
||||
## Update for 2025-12-26
|
||||
|
||||
|
||||
@@ -90,6 +90,10 @@ function send_to_kanvas(gallery) {
|
||||
const [image] = extract_image_from_gallery(gallery);
|
||||
log('sendToKanvas', image);
|
||||
if (window.loadFromURL && image.data) window.loadFromURL(image.data);
|
||||
// const inputPanelEl = gradioApp().getElementById('control-template-column-input');
|
||||
// if (inputPanelEl) inputPanelEl.classList.remove('hidden');
|
||||
const inputPanelCb = gradioApp().getElementById('control_dynamic_input');
|
||||
if (inputPanelCb && !inputPanelCb.checked) inputPanelCb.click();
|
||||
}
|
||||
|
||||
async function setTheme(val, old) {
|
||||
|
||||
@@ -163,7 +163,7 @@ def connect_paste_params_buttons():
|
||||
)
|
||||
elif isinstance(destination_image_component, gr.HTML): # kanvas
|
||||
binding.paste_button.click(
|
||||
_js="loadFromURL",
|
||||
_js="send_to_kanvas",
|
||||
fn=None,
|
||||
inputs=[binding.source_image_component],
|
||||
outputs=[],
|
||||
|
||||
Reference in New Issue
Block a user