LoremPic is a Python project that uses FastAPI and Pillow to generate placeholder images. The site uses Bootstrap and Feather icons.
You can request an image by providing an equal width and height as one dimension:
<img src="https://lorempic.com/size">
<img src="https://lorempic.com/400">
Or provide the width and height separately:
<img src="https://lorempic.com/width/height">
<img src="https://lorempic.com/400/200">
You can also specify the border and fill colors as three or six digit hex color codes:
<img src="https://lorempic.com/size/border/fill">
<img src="https://lorempic.com/400/abc/123456">
<img src="https://lorempic.com/width/height/border/fill">
<img src="https://lorempic.com/400/200/123456/abc">
The code for this project is available under the terms of the AGPLv3.