Skip to content

chitholian/image-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Image Converter Microservice

A very simple microservice to convert between image formats and resize.

Basic Requirements

  • Python 3.10+
  • pip
  • virtualenv

For Containerization

  • Podman
  • Docker

Create Python Virtual Environment

virtualenv .venv
source .venv/bin/activate

Install Required Packages

pip install -r requirements.txt

Run WSGI Server

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.

Build Container Image

Using Podman

podman build -t image-converter .

Run the built container image:

podman run --rm -d -p 8000:8000 localhost/image-converter:latest

Using Docker

docker build -t image-converter .

Run the built container image:

docker run --rm -d -p 8000:8000 localhost/image-converter:latest

Demo Credentials

Following credentials can be used for HTTP Basic Auth for testing:

  • Username: cns_demo
  • Password: cns_demo

About

A simple microservice to convert and resize images

Resources

License

Stars

Watchers

Forks

Packages

No packages published