./install.sh
./uninstall.sh
You can find the option in context menu in dolphin window manager.
The command is: imgur <Image-Path> <Image-Path> ....
. For more imgur -h | --help
\
Note:
You can pass more than one image as arguments.
The URL of the uploded image will be copied in the clipboard. You can access the history of the clipboard in kde via <SuperKey> + v
.
You must have an imgur account.If not then create your account at Imgur.
After that Go to Oauth2 for getting client_id and client_secret
a. Enter any name for Application name\ b. Choose OAuth 2 authorization without callback URL option\ c. Enter your Email id\ d. And then some description\ e. Tick the I'm not a robot option\ f. Finally click submit.\
Now you will get a client_id and client_secret
Pate this link https://api.imgur.com/oauth2/authorize?client_id=CLIENT_ID&response_type=token
in your favourite Editor and
Replace the CLIENT_ID with your client id and enter it in the browser.like https://api.imgur.com/oauth2/authorize?client_id=xxxxxxxxxxxxxxxxxx&response_type=token
Then Click allow to access your data.
Don't close the tab yet.Look carefully at your browser search field. https:imgur.com/#access_token=XXXXXXXXXXXXXXXXXXXXXXXXXXx&expires_in=
Now copy the access_token which is the bearer token which is use to access our api from now on. don't loose it otherwise you have to authorise again and have to repeat from Step 4 and you dont want to do that.
Now paste the access_token inside the config file i.e $HOME/.config/imgur/config
Which looks like {"token":"XXXXXXXXXXXXXXXXXXXXXx"}
You can manage your api application via App\ Now The image will be uploaded to your imgur account.\ For more info You can read the official documentation:Imgur API