PictureFrom

Build Status Code Climate Test Coverage

PictureFrom is the most efficient library for getting profile pictures.

Installation

gem install picture_from

Usage

Using PictureFrom is pretty simple! First, make sure the library is required:

require 'picture_from'

Pass an user information to the library's interface:

PictureFrom.url('karreiro')
# => http://graph.facebook.com/karreiro/picture

Engines

PicutreFrom has many engines for finding the appropriate image for any user in your application:

  • Gravatar
    • by e-mail
  • Facebook
    • by username
    • by e-mail
    • by user information
  • Twitter
    • by username

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request