/Python-Assignment

This Repository is only for Python Internship Assignment Evaluation

Primary LanguagePython

Python-Assignment

Demo Video

Demo.mp4

Requirements

  • Python (latest version), flask, numpy, io, PIL
  • For installing any library, you have to just run pip install flask

API Running Process

  • Firstly you have to run command python app.py and after that you will get the localhost address like http://127.0.0.1:5000 for running the API on live server.
  • Now, you have to enter the parameters value width, height, format and color and click on Generate Button and API will show you the image array with color filing on new window.
  • For again enter the value in API so you have to go back in browser and enter the values.
  • If you leave the width and height blank and click on Generate button so it will show the message Invalid parameter value and if you enter long integer value in width and height then it will show Width or height too Large.
  • This API handle all the errors scenario's.