Forum Archive

Insert pictures in a topic of this Forum

cvp

I've seen some topics in this forum where pictures are inserted. How can we do that?

omz

An easy way is to upload it to Dropbox, generate a share link, and change the URL, so that dl=1 is 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:

![title](image_url)

Webmaster4o

After installing 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)
cvp

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).

dgelessus

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.

Webmaster4o

@dgelessus That's what my script does, it automated the anonymous uploading and copies a URL. I may try to rewrite it with requests to make it easier to distribute.

cvp

Good to know, thanks a lot