A very simple microservice to convert between image formats and resize.
- Python
3.10+
- pip
- virtualenv
- Podman
- Docker
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
cd src/
gunicorn image_converter:app run
Now, you can browse https://127.0.0.1:8000 to view and test API documentation in Swagger.
podman build -t image-converter .
Run the built container image:
podman run --rm -d -p 8000:8000 localhost/image-converter:latest
docker build -t image-converter .
Run the built container image:
docker run --rm -d -p 8000:8000 localhost/image-converter:latest
Following credentials can be used for HTTP Basic Auth for testing:
- Username:
cns_demo
- Password:
cns_demo