dissent icon indicating copy to clipboard operation
dissent copied to clipboard

Pasting images in.

Open bend-n opened this issue 2 years ago • 7 comments

In a few screenshot apps, you can copy the screenshot to your clipboard, and then paste it into discord. In gtkcord4 you cant. It just makes a mysterious clipboard file.

bend-n avatar Jun 11 '22 06:06 bend-n

I can paste it just fine.

image

diamondburned avatar Jun 11 '22 06:06 diamondburned

Hmm...

image

bend-n avatar Jun 11 '22 22:06 bend-n

image

i'm getting this bug, using Spectacle to take screenshots

it's not putting .png or .jpg or whatever at the end, so discord doesn't show it as an image

puyoxyz avatar Jul 23 '22 12:07 puyoxyz

image

i'm getting this bug, using Spectacle to take screenshots

it's not putting .png or .jpg or whatever at the end, so discord doesn't show it as an image

~~this is what i call a quality pfp and nickname~~ does it work with windows 10 screenshot?

G9-Dev avatar Jul 27 '22 18:07 G9-Dev

Spectacle is the windows 10 screenshot for KDE.

bend-n avatar Jul 27 '22 21:07 bend-n

Try logging what mimeTypes is here: https://github.com/diamondburned/gtkcord4/blob/main/internal/gtkcord/message/composer/input.go#L222.

It could be that whatever the screenshot program that you're using isn't putting data into the clipboard with the right MIME type.

diamondburned avatar Jul 27 '22 23:07 diamondburned

Having the same problem over a year later :P Seems like Spectacle copies images with the MIME type application/x-qt-image, and gtkcord4 doesn't recognise that as an image format when pasting.

aaannestad avatar Oct 24 '23 14:10 aaannestad