Project

imgur_url

0.0
No commit activity in last 3 years
No release in over 3 years
Parse imgur.com image URLs.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

Ruby gem for dealing with imgur image URLs. Install with gem install imgur_url

Build Status

Example usage

i = ImgurUrl::Image.new("http://imgur.com/dhuY8")
i.id
# => "dhuY8"
i.url
# => "http://i.imgur.com/dhuY8.jpg"
i.url(:small)
# => "http://i.imgur.com/dhuY8s.jpg"
i.download_url
# => "http://imgur.com/download/dhuY8"
i.permalink_url
# => "http://imgur.com/dhuY8"

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)