From: Adam S. <as...@ko...> - 2019-04-14 22:09:23
|
Adam Sjøgren writes: > Both Conversations and Gajim (with the Url Image preview-plugin) support > sending images, by way of XEP-0363, displaying the image inlne in the > chat. > I found https://github.com/yuchangyuan/jabber-http-file-upload but it > doesn't work for me, it just keeps prompting for files. I've hacked away on this library a bit, so now prompting for a file works for me, discovery of the http-upload service works for me, and the uploaded image is sent as a jabber:x:oob url-message, so Conversations, Gajim et al will show it inline. With the patch I sent yesterday ("[PATCH UPDATED] Add jabber-chat-print-image to body-printers, move jb-print-url too"), the image sent is also displayed inline in jabber.el. The only thing I haven't been able to figure out is that I get a multibyte HTTP request error the second time I call jabber-http-file-upload - so I can send one image, then I have to restart Emacs to send another. Which is kind of annoying. I can't figure the reason out. If anyone can, it would be great. Here are my changes: · https://koldfront.dk/git/jabber-http-file-upload/ I hope they can be useful to someone. I rather like being able to send images inline in jabber.el, so I don't have to resort to centralized non-XMPP services just to send a picture! Best regards, Adam -- "Everything needs to change. Adam Sjøgren And it has to start today." as...@ko... |