Skip to content

OpenGenus/png-to-jpg-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PNG TO JPEG CONVERTER

Application Screenshot

There isn't a one-size-fit image format. At times, you might want to covert between various image formats. Opting for an image format is more like buying a personal computer - you atleast have to consider your needs. Likewise, choosing PNG over JPEG or JPEG over PNG is subjective to the use case.

If you have PNG files occupying lots of space on your hard disk, converting them to JPEG can ensure efficient storage usage or for any other reason, for as long as it involves converting from PNG to JPEG, be my GUEST 🍵. This application will do the conversion for you 😃.

Installing the application

Creating the virtual environment

Using python venv module

python -m venv flask-sandbox

The above command creates a virtual environment with the name 'flask-sandbox'. This works for python >= 3.3

Using virtualenv

virtualenv --python=/usr/bin/python3 flask-sandbox

Installing the requirments

Activating the environment

source flask-sandbox/bin/activate

flask-sandbox/bin/activate path is relative to wherever you created the virtual environment.

pip install -r requirements.txt

Run the application

cd [Application Folder]
flask run

Visit http://127.0.0.1:5000 in browser.