Gallery icon indicating copy to clipboard operation
Gallery copied to clipboard

Copy image to clipboard

Open counter185 opened this issue 1 year ago • 2 comments

What is it?

  • [ ] Bugfix
  • [x] Feature
  • [ ] Codebase improvement

Description of the changes in your PR

  • Added the option to copy an image to the system clipboard *copying an image to the system clipboard seems to be a relatively recent Android addition and will probably only work on newer versions. Unfortunately right now I can't pinpoint which exact versions support it and which don't Devices I tested this on:
    • Xperia 1 IV (Android 14, works)
    • Galaxy Tab S7 FE (Android 14, works)
    • Galaxy S20 FE (Android 13, works)
    • Galaxy Note8 (Android 9, ~~doesn't work, copies the content:// uri as text~~ doesn't work with the default Samsung keyboard, needs a keyboard that supports images in the clipboard like Gboard)

Before/After Screenshots/Screen Record

Screenshot_20241222-235237

Fixes the following issue(s)

  • Fixes #199

Acknowledgement

counter185 avatar Dec 22 '24 23:12 counter185

Unfortunately right now I can't pinpoint which exact versions support it and which don't

It's not Android API dependent. Keyboard needs to support it.

Aga-C avatar Dec 23 '24 07:12 Aga-C

Just to verify this I installed the latest Gboard on the Note8 and it did let me paste an image into Discord so that could be it

counter185 avatar Dec 23 '24 08:12 counter185

Does anyone know an app that supports pasting videos?

naveensingh avatar May 31 '25 07:05 naveensingh

Decided to go with just disabling it for videos, it seems like nothing supports it at this point in time, even when I changed the ClipData label to Video Android 14 didn't know what the contents are

counter185 avatar May 31 '25 07:05 counter185