#Imgur Uploader
A command-line helper to upload images to imgur, written in Python.
We use the soft link to install the Python script. The executable Python script is upload.py
-
Clone the entire repo.
-
Install the dependencies using pip:
pip install -r requirements.txt -
Make
upload.pyexecutable:chmod +x upload.py -
Check out one of the PATH addresses in your machine.
-
In the root dir of the repo:
ln -s $PWD/src/upload.py YOUR_PATH/uploadIn my case:
ln -s $PWD/src/upload.py $HOME/bin/uploadNote that you can specify the word "upload" at the end into some other words you like.
##First time logging in At the first time, you need to login to authenticate this upload program.
- At first, the cli-interface will ask you to log in your imgur account:
At the same time, your browser will pop up and an imgur OAuth url is opened.
Copy and paste the PIN in the page to the command line program and you will successfully logged in. At this time you are good to go.
##Usage
-
Just simply navigate your directory to the files you want to upload and type
$upload your_image.jpg, you can specify theuploadcommand to some other preferences (check out Installation#4). -
Arguments 3.
upload -c your_image.jpg image_2.png: Upload your image(s) to your imgur account and copy the corresponding imgur url(s) into your clipboard. 4.upload -o your_image.jpg: Upload your image(s) to your imgur account and open the corresponding url(s) on your browser. 5.upload -m your_image.jpg: Convert your result url(s) of images into markdown syntax.
##Problem
- Upload speed seems kind of slow. It need to be fixed soon.

