Image uploading services ideas

Many modern networks have direct support for uploading image attachments. We’re of course going to support this, but there are networks that don’t support this and it would be nice to be able to add some level of support there too.

Also, some public chat rooms, notably on matrix, have disabled image uploading and are requiring users to use imgur or another service due to matrix’s inability to handle explicit images.

So it’d be nice if we had a way to let the user control how Pidgin handles the images. This could go in pidgin or purple.

Essentially would be an a “sending-message” signal or something and it would just read the Purple.Message.Attachments upload them to the service, append the links to the message, remove the attachments from the message and then continue on with the normal send.

However, we’d have to be careful here because a signal can’t block. So maybe we need someway to prepare a message or mutate it that can be done asynchronously. This is because the message needs to be modified before we call Purple.ProtocolConversation.send_message_async.

1 Like

Not sure how I would handle this particular thing, however, i think that is not a bad idea either.

So you’re sending images, etc. elsewhere?

yes. but the links to them have to be known before the message is sent which is where the problem comes from as right now the ui would have to be blocked.

1 Like

Yeah and timing would be important too for context reasons.

Is the image handling a configuration option, say send the related image(s) to x URI/URL?

That wouldn’t be bad imho, provided it could be done in a manner that’s useable

The idea is that a plugin could implement it, so it’s whatever the plugin wants to do.

2 Likes

That’s fair and seems reasonable that a plugin can do it.

Yeah sorry it wasn’t clearer earlier to me this is just intrinsically something a plugin would do because we’d never add support for something as specific for imgur, as instead we’d create the tools for anyone to make it work for their scenario.

Yeah I can understand that too. Either way, good idea. This also removes the need to support the image bins out there

precisely and lets us not take a side/endorse any of them :slight_smile: