Generated image.

About

LoremPic is a Python project that uses FastAPI and Pillow to generate placeholder images. The site uses Bootstrap and Feather icons.

Usage

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">
Generated image.

Or provide the width and height separately:

<img src="https://lorempic.com/width/height">
<img src="https://lorempic.com/400/200">
Generated image.

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">
Generated image.
<img src="https://lorempic.com/width/height/border/fill">
<img src="https://lorempic.com/400/200/123456/abc">
Generated image.

License

The code for this project is available under the terms of the AGPLv3.