Ruby gem for dealing with imgur image URLs. Install with gem install imgur_url
Example usage
i = ImgurUrl::Image.new("http://imgur.com/dhuY8")
i.id
i.url
i.url(:small)
i.download_url
i.permalink_url
Recognized input URL formats
http://imgur.com/{image_id}
http://i.imgur.com/{image_id}.jpg
http://imgur.com/download/{image_id}
Supported url
sizes
:original
(default):huge
(1024px in largest dimension):large
(640px in largest dimension):medium
(320px in largest dimension):box
(160px/160px center-cropped):thumb
(160px in largest dimension):small
(90px/90px center-cropped)