bugaevc / wl-clipboard

Command-line copy/paste utilities for Wayland
GNU General Public License v3.0
1.62k stars 60 forks source link

Unable to copy gif as in picture example #145

Closed TomKeyte closed 2 years ago

TomKeyte commented 2 years ago

Hi I'm wondering if it's possible/simple to add support for copying gifs to the clipboard, as with the image example in the readme (and therefore so that they can be pasted including the filename into something like slack, gmail, etc...)

I have the attached file at /tmp/recordings/test.gif and when I try to copy it with

wl-copy -t 'image/gif' < /tmp/recordings/test.gif

I'm able to then redirect this to another file for example with wl-paste > /tmp/recordings/test2.gif, but it doesn't work pasting into applications

test

YaLTeR commented 2 years ago

I suspect that this is not a wl-clipboard issue, but rather an issue with applications not supporting pasting GIFs. I tried copying this GIF from Firefox and it didn't even offer a GIF format on the clipboard.

If there's a particular application where you can copy-paste GIFs, you can check which MIME type it uses with wl-paste -l and copy using the same MIME type.