🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

imgur_url

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imgur_url

0.3
Rubygems
Version published
Maintainers
1
Created
Source

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)

FAQs

Package last updated on 25 Jun 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts