#JPG Lorem Pixel This is a simple wrapper to the Lorem Pixel website.
Using this, it's possible to get image URLs with the .jpg extension, needed for uploaders such as Carrierwave.
A live version is available here!
##Usage
Simply use this path to get images: /[category]/[width]/[height]/[anything]
If [category]
isn't included in the available categories, it'll return a image from a random category.
[anything]
can literally be anything, as it'll have no effect on the request. So if you need the image with a specific fillname, you can call /image/150/150/filemane.jpg
###Sample URLs
Getting a random 300x300 image:
/image/300/300/
Getting a random 400x250 .jpg image:
/image/300/300/.jpg
Getting a random 150x150 .jpg image of people with the image named user_avatar.jpg
:
/peolpe/150/150/user_avatar.jpg
###Available categories
abstract
animals
business
cats
city
food
nightlife
fashion
people
nature
sports
technics
transport
##Setup
- Clone de repository
git clone git@github.com:barboza/jpg_lorem_pixel.git
- Install bundler
gem install bundler
- Install all the dependencies from Gemfile
bundle install
- Run the app
shotgun
##Contributing
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
#License Licensed under the MIT license (see MIT-LICENSE file)