EvilZone

Programming and Scripting => Scripting Languages => Topic started by: Satan911 on April 18, 2013, 08:02:59 PM

Title: [Ruby] Imgurr : Basic Imgur Command-Line Utility in Ruby [Open Source]
Post by: Satan911 on April 18, 2013, 08:02:59 PM

Imgurr is my first Ruby project. It's a simple command-line utility to quickly upload or delete images from Imgur or get information about an image.


Features:
* Image link copied to clipboard when upload finished.
* Save the delete hash locally so you can delete the image later if needed.
* Get information such as bandwidth and number of views quickly.
* Set the image title and description from the command line.
* Markdown syntax also available.


Install:
Code: [Select]
gem install imgurr

Usage:
Code: [Select]
    imgurr upload image.jpg
    Copied http://i.imgur.com/PLWGJlc.gif to clipboard
   
    imgurr upload image.jpg --markdown
    Copied ![Screenshot](http://i.imgur.com/PLWGJlc.gif) to clipboard
   
    imgurr info 2KxrTAK
        Image ID   : 2KxrTAK
        Views      : 14717
        Bandwidth  : 2.296 GiB
        Title      : None
        Desc       : None
        Animated   : false
        Width      : 960 px
        Height     : 540 px
        Link       : http://i.imgur.com/2KxrTAK.jpg
   
    imgurr delete http://i.imgur.com/2KxrTAK.jpg
    Successfully deleted image from Imgur
   
    ./imgurr --help for more.
   
   
Source Code:[MIT License]
https://github.com/Chris911/imgurr


Contribute:
As I mentioned earlier this is my first Ruby gem and I'm sure I did a lot of things wrong. Check the code and make pull request if you think something should be improved. Also please report any bug on the Github page via issues.