chaiNNer icon indicating copy to clipboard operation
chaiNNer copied to clipboard

Add a "Copy to Clipboard" node

Open RunDevelopment opened this issue 2 years ago • 4 comments

When I edit images, it's sometimes easier to do certain tasks in chainner. E.g. tiling a texture to a certain size. To get the final image into my image editing software, I use the View Image (External) node and then copy the opened image to paste into a new layer in the image I'm working on.

It would be nice to have a node that copies an image to clipboard to speed up my workflow.

RunDevelopment avatar Aug 03 '22 06:08 RunDevelopment

I think this should be possible by having an image clipboard output, and using a full image broadcast where instead of a preview it gets copied to clipboard. That is, unless python supports copying to clipboard as well

joeyballentine avatar Aug 04 '22 14:08 joeyballentine

Hmm apparently you can but it requires you to install another depencency for it

joeyballentine avatar Aug 04 '22 14:08 joeyballentine

I'd rather not send a 100MB PNG via JSON to the frontend just to write it to the clipboard. This is something the backend has to do.

RunDevelopment avatar Aug 04 '22 14:08 RunDevelopment

Yeah, I just didn't know if python could copy to clipboard. Since it can, we definitely should do it through that

joeyballentine avatar Aug 05 '22 09:08 joeyballentine

This has been solved by #920.

RunDevelopment avatar Sep 15 '22 18:09 RunDevelopment