From e4c90d12d98e420605cc48358ab7adae69b02450 Mon Sep 17 00:00:00 2001 From: Siddhesh Bhupendra Kuakde <65951872+SiddheshKukade@users.noreply.github.com> Date: Mon, 3 Oct 2022 14:33:23 +0530 Subject: [PATCH] Create convert.py --- scripts/jpg-to-png Converter/convert.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 scripts/jpg-to-png Converter/convert.py 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')