ComfyUI/web
Michael Abrahams 6f70227b8c Add support for pasting images into the graph
It can be useful to paste images from the clipboard directly into the node graph.
This commit modifies copy and paste handling to support this.

When an image file is found in the clipboard, we check whether an image node is selected.
If so, paste the image into that node. Otherwise, a new node is created.
If no image data are found in the clipboard, we call the original Litegraph paste.
To ensure that onCopy and onPaste events are fired, we override Litegraph's ctrl+c and ctrl+v handling.

Try to detect whether the pasted image is a real file on disk, or just pixel data copied from e.g. Photoshop.
Pasted pixel data will be called 'image.png' and have a creation time of now.
If it is simply pasted data, we store it in the subfolder /input/clipboard/.

This also adds support for the subfolder property in the IMAGEUPLOAD widget.
2023-09-03 12:08:04 -04:00
..
extensions Fix issue when node_input is undefined. 2023-09-02 12:17:30 -04:00
lib Update litegraph with upstream: middle mouse dragging. 2023-08-31 02:39:34 -04:00
scripts Add support for pasting images into the graph 2023-09-03 12:08:04 -04:00
types fix: ️ small type fix 2023-07-21 13:19:05 +02:00
index.html Allow user customizable css 2023-08-17 13:36:55 +01:00
jsconfig.json Added support for converting widgets to inputs (and back) 2023-03-23 21:37:19 +00:00
style.css Added label for autoQueueCheckbox. (#1295) 2023-09-02 02:58:23 -04:00
user.css Allow user customizable css 2023-08-17 13:36:55 +01:00