This is the source code for the PixelHoldr image placeholder generator. I have provided the code behind the site so that you may self-host the generator / help improve it / do what you want with it.
If you wish to use image placeholders without running this locally, please visit PixelHoldr.com.
A previous version of this application required MongoDB. This is no longer the case.
- Clone the repository
- Navigate to the folder in the terminal
- Run
bundle install - Update
config/flickr.ymlwith your Flickr API details - Run
ruby pixelholdr.rb
PixelHoldr works with the following URL format
http://localhost:4567/{image type}/{image dimensions}/{optional image settings} To add an image to your HTML, simply insert the URL in the src attribute of the img tag.
e.g.:
<img src="http://localhost:4567/cat/500"> For complete information about how to use the PixelHoldr service, please visit PixelHoldr.com.