Image place holder web application.
Generate random image based on given width and height.
- HTTP GET on http://[a domain name]/ will display help page.
- HTTP GET on http://[a domain name]/{width}x{height} will retrieve width and height, validates it and then output JPEG image.
- HTTP GET on http://[a domain name]/{width}x{height}/jpg will retrieve width and height, validates it and then output JPEG image.
- HTTP GET on http://[a domain name]/{width}x{height}/png will retrieve width and height, validates it and then output PNG image.
For example: http://place.img/200x300 will output JPEG image with 200 x 300 resolution.
- Clone this repository and then
cd placeimg/placeimg
- Make sure you have Composer installed somewhere.
- Run
composer install
to install all software packages dependencies. - Create a virtual host on your web server then point public directory as Document Root.
- From shell run
composer dumpautoload
to generate autoload file (optional).
Application is built on top of Laravel framework 5.1 and Intervention Image (http://image.intervention.io)
That's it. If you add new cool features, please feel free to submit PR.
Zamrony P. Juhara zamronypj@yahoo.com @zpjuhara