tigase / beagle-im

(M) XMPP client for macOS based on TigaseSwift XMPP library
GNU General Public License v3.0
184 stars 21 forks source link

Provide ability to paste graphical clipboard contents. #49

Open jhfrontz opened 4 years ago

jhfrontz commented 4 years ago

It would be nice if I could capture some graphical object in the clipboard (e.g., by doing a screen capture) and paste it into Beagle (and have it automatically, say, create a temporary file and upload it to the conversation).

This functionality may be a subset of that requested in https://github.com/tigase/beagle-im/issues/41

woj-tek commented 4 years ago

Currently on macOS, when you make a screenshot it's preview is displayed in the corner and you can drag'n'drop it to Beagle to send it.

jhfrontz commented 4 years ago

Currently on macOS, when you make a screenshot it's preview is displayed in the corner and you can drag'n'drop it to Beagle to send it.

I'm not seeing that (on either Mojave or Catalina) when using Command-shift-4 to capture.

woj-tek commented 4 years ago

I think it may have came with Catalina, but I'm not sure here. I quickly checked and https://www.maketecheasier.com/get-rid-floating-screenshot-preview-macos/ mentiones Mojave as well.

jhfrontz commented 4 years ago

Aha, after playing around a bit I found that you have to change the save-to location to "desktop" (vs. clipboard), which probably makes it a file that can be dragged.

hantu85 commented 4 years ago

Providing pasting arbitrary payload is more complex as we are not getting encoded file or encoded data but just raw image or movie which would need to be encoded, most likely previewed before it would be sent. That would force us to add a lot of a code for a future which in most cases can be easily replaced by saving a file and just dragging and dropping it to the chat window.

We will consider this for future versions but it is rather low priority features.

michaelblyons commented 4 years ago

Currently on macOS, when you make a screenshot it's preview is displayed in the corner and you can drag'n'drop it to Beagle to send it.

Whoa! I had no idea you could interact with that thumbnail beyond click-to-annotate. I always waited for it to go away to drag it from Desktop to email/chat/etc. That's great to know!

stevenroose commented 2 years ago

Dino added this seemingly without too much hassle..

TheSenPie commented 2 years ago

Currently on macOS, when you make a screenshot it's preview is displayed in the corner and you can drag'n'drop it to Beagle to send it.

I am on macOS and I cannot send images nor send voice messages. The buttons are disabled and even if I drag'n'drop image it pastes filesystem path to that file, rather than the actual content.

Screen Shot 2022-04-04 at 15 12 03

System info

image
hantu85 commented 2 years ago

@TheSenPie Please do not hijack issues.

This has nothing to do with Beagle IM abilities, most likely your server is not reporting HTTP File Upload in a way in which it is expected to do so.

It may be related to https://github.com/tigase/siskin-im/issues/37