- Upload an image to an Imgur account
- Easy to integrate with Linux desktop usage
- Supports desktop notifications, copy to clipboard and open in browser
- Communicates with the Imgur API using the official Imgur python client library
See The Imgur API - Authentication.
As this application is not official or in any way endorsed by Imgur (see imgur.com/tools) you have to fix registration and authentication yourself. See imgurpython - library usage to get an idea how this is done.
Once done, fill in your account properties in .imgurrc
and copy it to your
$HOME
directory. Designed to upload to an account, but could also be used for
anonymous uploads.
-
Place
imgur.py
somewhere in your$PATH
, e.g./home/user/bin/imgur.py
. -
Run with path to an image as argument:
$ imgur.py shot0001.png
-
Place
imgur.py
somewhere in your$PATH
, e.g./home/user/bin/imgur.py
. -
Update the paths in
Imgur.desktop
, optionally with an icon of choice. -
Copy
Imgur.desktop
to$HOME/.local/share/applications
or similar depending on setup. Consult the documentation of your distro and the MIME application specification on Freedesktop.org. -
Update
mimeapps.list
with file associations to whatever file types you want, e.g:[Added Associations] image/gif=kde4-gwenview.desktop;gimp.desktop;Imgur.desktop; image/jpeg=kde4-gwenview.desktop;gimp.desktop;Imgur.desktop; image/png=kde4-gwenview.desktop;gimp.desktop;Imgur.desktop;
-
The Imgur Upload application should now be available on "Open With.." and any other menus using the MIME associations.
See imgur_screenshot.ogv for a demo using KDE's ksnapshot tool for taking a screenshot, uploading it to Imgur using the PNG file association and finally opening it in the default browser.