Generate fake images for testing or as placeholders
Generate a random image with the following URL:
/random-{width}-{height}-{tile}.{extension}
Param | Optional | Description |
---|---|---|
width | width in pixels | |
height | x | height in pixels, if omitted width is used to produce square image |
tile | x | tile size of random colors in generated image, 5 is default value |
extension | x | png, jpg, jpeg or gif is supported |
composer install
php -S localhost:9000 -t ./public ./config/server.php
docker run -it --rm -p 9000:9000 stefanhuber/fakeimage