Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
imgur.py
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment