Git Product home page Git Product logo

imgur-upload's Introduction

Imgur Upload

  • 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

Configuration

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.

Simple usage

  1. Place imgur.py somewhere in your $PATH, e.g. /home/user/bin/imgur.py.

  2. Run with path to an image as argument:

     $ imgur.py shot0001.png
    

Linux desktop usage

  1. Place imgur.py somewhere in your $PATH, e.g. /home/user/bin/imgur.py.

  2. Update the paths in Imgur.desktop, optionally with an icon of choice.

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

  4. 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;
    
  5. The Imgur Upload application should now be available on "Open With.." and any other menus using the MIME associations.

Open With...

Demo

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.