Insert pictures in a topic of this Forum
I've seen some topics in this forum where pictures are inserted. How can we do that?
An easy way is to upload it to Dropbox, generate a share link, and change the URL, so that
dl=1is at the end (the default link will usually end with
dl=0, which means that it can't be embedded directly. There are a lot of other image hosting services of course.
Then just use this (Markdown) syntax to embed the image in your post:
pyimgur, I use the following script:
import pyimgur,photos,clipboard,os,console i=photos.pick_image() format = 'gif' if (i.format == 'GIF') else 'jpg' i.save('img.'+format) clipboard.set(pyimgur.Imgur("303d632d723a549").upload_image('img.'+format, title="Uploaded-Image").link) console.hud_alert("link copied!") os.remove('img.'+format)
Thanks to both of you.
I understand that the picture is still linked by an URL, thus the picture file needs to remain on the server (fi Dropbox).
I like to use imgur.com too, it allows anonymous image uploading (without an account) and you can also get a deletion link in case you want to delete the image later.
@dgelessus That's what my script does, it automated the anonymous uploading and copies a URL. I may try to rewrite it with
requeststo make it easier to distribute.
Good to know, thanks a lot