Created
November 29, 2015 21:37
-
-
Save controversial/029e2bd955ea87425d89 to your computer and use it in GitHub Desktop.
imgur.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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