diff --git a/scripts/jpg-to-png Converter/README.md b/scripts/jpg-to-png Converter/README.md new file mode 100644 index 0000000..46d51d6 --- /dev/null +++ b/scripts/jpg-to-png Converter/README.md @@ -0,0 +1,12 @@ +# JPG to PNG convereter in pyton +This is a simple script that lets you convert JPG to PNG. + +## Usage + +* Clone the repo +* download the requirements +* Install [wkhtmltopdf](https://wkhtmltopdf.org/downloads.html) as per your operating system +* run `python script.py` + +## Details +- make sure to provide the path of the `image` and also for the conveted png image accordingly in order to make the program work correctly. diff --git a/scripts/jpg-to-png Converter/convert.py b/scripts/jpg-to-png Converter/convert.py new file mode 100644 index 0000000..62403a2 --- /dev/null +++ b/scripts/jpg-to-png Converter/convert.py @@ -0,0 +1,4 @@ +from PIL import Image +# Make sure to add the paths of Images +im1 = Image.open(r'path where the JPG is stored\file name.jpg') +im1.save(r'path where the PNG will be stored\new file name.png')