InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Can't copy images to clipboard anymore.

Open Barafu opened this issue 3 years ago • 12 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

Windows

GPU

cuda

VRAM

24

What version did you experience this issue on?

3.0.0+b6

What happened?

In the 2.3.5, on the txt2img tab, I was able to right click the central image and choose "Copy image". That copied full image data to the clipboard. Then I could paste it into an external image editor. Edit, copy to clipboard again and paste back.

In 3.0.0, the right click menu does not contain the entry "Copy image". I need to download image, then open the download folder, drag image to editor, edit it, save edited to the file, and not forget to delete the original downloaded file. Alternatively, I can copy image to clipboard by pressing F12 and messing with Chrome tools. That is not a healthy workflow.

Please either get the entry back, or, maybe even better, create a button "Copy image data to clipboard".

P.S. I am marking it a bug because at least for me it is a clear regression.

Screenshots

No response

Additional context

Win 11, Brave browser.

Contact Details

No response

Barafu avatar Jul 17 '23 17:07 Barafu

A copy button in in an open PR for the next version

hipsterusername avatar Jul 17 '23 17:07 hipsterusername

This is resolved, I cannot remember which PR it was in. It's in the release now though.

psychedelicious avatar Aug 05 '23 02:08 psychedelicious

This is happening to me on a fresh install of 3.7.0 image

TheNore avatar Feb 27 '24 02:02 TheNore

This is happening to me on a fresh install of 3.7.0 image

This is a browser limitation - Context menus that are present in the app are limited from copying to the clipboard in certain browsers like Ffox. Open in a new tab, then copy.

sorry for the hassle - the internet (and browsers) seem to have left its golden era.

hipsterusername avatar Feb 27 '24 03:02 hipsterusername

Thank you for this. that is a good workaround However, is there any way to force the copy option? I have invoke installed on another PC and the copy function works fine, with the same browser and version.

TheNore avatar Feb 27 '24 03:02 TheNore

@TheNore You can enable clipboard in Firefox:

  • Go to about:config in the address bar
  • Search for dom.event.clipboardevents.enabled and set it to true

Should be able to copy with this change.

psychedelicious avatar Feb 27 '24 08:02 psychedelicious

Awesome, thank you! Is there an equivalent functionality in chrome as well?

TheNore avatar Feb 27 '24 14:02 TheNore

@TheNore Chrome enables this clipboard API by default. You shouldn't need to change anything. Only FF has it disabled by default.

psychedelicious avatar Feb 27 '24 14:02 psychedelicious

@TheNore You can enable clipboard in Firefox:

* Go to `about:config` in the address bar

* Search for `dom.event.clipboardevents.enabled` and set it to `true`

Should be able to copy with this change.

This was enabled by default for me.

I found that dom.events.asyncClipboard.clipboardItem was set to false and setting it to true fixed it for me

trpipher avatar May 31 '24 17:05 trpipher

Thank you! Is there any way to enable this for chrome?

On Fri, May 31, 2024, 1:12 PM Thomas Pipher @.***> wrote:

@TheNore https://github.com/TheNore You can enable clipboard in Firefox:

  • Go to about:config in the address bar

  • Search for dom.event.clipboardevents.enabled and set it to true

Should be able to copy with this change.

This was enabled by default for me.

I found that dom.events.asyncClipboard.clipboardItem was set to false and setting it to true fixed it for me

— Reply to this email directly, view it on GitHub https://github.com/invoke-ai/InvokeAI/issues/3802#issuecomment-2142669784, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEBTTF5VN7PKKVNVBUBDJX3ZFCVPFAVCNFSM6AAAAAA2NHJGYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBSGY3DSNZYGQ . You are receiving this because you were mentioned.Message ID: @.***>

TheNore avatar May 31 '24 17:05 TheNore

@TheNore Unless something has changed recently, Chromium browsers enable this API by default.

psychedelicious avatar Jun 02 '24 05:06 psychedelicious

On a fresh install (docker), copying still doesn't work for me on a firefox fork (zen browser) with both of these options enabled in the config.

NilsMoller avatar May 15 '25 14:05 NilsMoller