Skip to content

dbeidle/image_placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image_placeholder

This will generate a placeholder image by calling it within a <img />

Install:

Clone the repo:

git clone https://github.com/dbeidle/image_placeholder.git

Install the packages:

pip install -r requirements.txt

Run the app:

uvicorn main:app --reload

or

python3 main.py

Required Query Strings are width and name. If you don't pass height, it will return a square image that is the same height as the width you specify.

An example call would be:

<img src="http://localhost:8000/img/?width=800&height=600&name='placeholder image'" />

It's as simple as that..

About

FastAPI to generate placeholder images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages