Not usual for me to ask, but... A quick question.
Any way to post an image in a toot without having to upload the image into the message or copy/paste into it?
Tried <img src:" " tag and it doesn't convert to an image.
Reason for asking - hate to be re-uploading and taking space on servers with multi copies of same thing. TY.
@freemo Testing that...
https://discourse.qoto.org/images/discourse-logo-sketch.png
^---- is shown as a link only. Bummer.
<img src="https://discourse.qoto.org/images/discourse-logo-sketch.png">
@freemo I did a bing search, found the docs.joinmastodon.org guides, but they do not mention any ways to post an image link directly.
Maybe something to ask for, to be added to Mastodon in future.
I hate adding another copy of a file to our server, and the many ones who will get the message. Silly waste of storage.
@freemo I wish Mastodon would support the html img tag directly.
Discouse does it well. Just posted a new thread there and bam, instant pic, hosted here at masto, no sweat.
https://discourse.qoto.org/t/is-there-such-a-thing-as-rate-my-instance/130
@freemo @design_RG tusky (an android client) does this afaik but nothing else I've tried, including web does.
You have to think through how it would scale. An image you post could appear in arbitrarily many people's timelines simultaneously due to federation. If several thousand Mastodon clients all of a sudden try to load the same image from the webserver, that's a big spike it would have to handle.
One alternative would be for the client's instance to make a local copy on the first request, and rewrite the url so its users don't have to keep going back to the original. You'd get only one hit per instance instead of per user, but then you're back to storing a local copy anyway, so what's the gain?
@khird My idea was to be able to re-use an image that I have previously saved into the local instance in another toot.
After entering the image into a new toot, instead of adding a new copy, adding it to the users Media folder, it could point to the pre-existing copy and send the toot on.
I do not know how other instances handle the images in posts, but I think they request and keep a local copy, for local users seeing the toot.
the images get a long hashed name, and if the same image exactly was used, it might be in their local cache and save a new transfer and storage.
@design_RG If you put the raw link in the message I think it might show a sort of preview.