Image placeholder service to quick and dirty edit a closed image set faster than a teenager on instagram.
- Run
composer install
to install dependencies - Copy content of app directory to server hosting location
- Add images to
images
directory on hosting location - Make sure
_cache
directory is writeable - Profit
Look below for development instructions
Navigate to /width/height in your browser to get a random image in given width or height. This can be either an integer to indicate the number of pixels or auto to allow to automatically scale.
If both a width and height are given in pixels the picture will be resized to cover the given area. If the image is larger than the given ratio the excess will be cropped to keep aspect ratio.
You can target a specific image to add the image
query parameter with the value of the image file name without extension.
You can user the php build in server during development
- Run
composer install
to install dependencies - Navigate to the app directory in terminal
- Run
php -S 0.0.0.0:8888 darkroom.bot.php
- Navigate in your browser to
http://localhost:8888
Make sure the images
folder has image files and the _cache
directory is writeable.