Skip to content

bill-kolokithas/imgur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collection of scripts to upload photos on imgur. All scripts use xclip to put the direct link on clipboard and libnotify to show a notification when done. Images are uploaded anonymously using v3 api. ruby-oauth supports uploading photos to a user's album. (you have to run it from terminal the first time)

C version requires curl headers, ruby needs the curl bindings provided by curb gem, perl needs the curl bindings provided by WWW::Curl CPAN module.

Usage for all scripts

./imgur_script <path/to/file.(png|jpg)>

Example invocation using scrot

scrot -e 'imgur.rb $f'

Command to compile C program

gcc -s -O2 imgur.c -o imgur -lcurl