Forum Archive

Posting images

masscode

Hi
This is about this forum.
How do you post images in your messages? I’ve looked, but can’t seem to find that option.
Thanks!

cvp

@masscode I use this script to pick a photo and send it to Imgur site.
Script copies an url to the clipboard and your post in the forum has to link to it

import pyimgur,photos,clipboard,os,console
i=photos.pick_image()
if i:
    print(i.format)
    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) 

After having installed pyimgur

stephen

@masscode @cvp

Nice! i just use this @masscode if you dont want to use script.

![Label here](image url here)

cvp

@stephen sure we use this way to link the image, the script is to upload the image

stephen

😅 for some reason i thought ur scripte did everything lol

masscode

Oh, this is great. Thanks!

link text