diff --git a/JPG_to_PNG.py b/JPG_to_PNG.py new file mode 100644 index 0000000..f803453 --- /dev/null +++ b/JPG_to_PNG.py @@ -0,0 +1,14 @@ +from PIL import Image + +# open JPG image + +try : + + image = Image.open(r"C:\Users\ABHILASH\OneDrive\Desktop\iron man_jpg.jpeg") # Repalce path with our own image path + + # You can also provide an absolute path if you want to save it elsewhere + image.save("iron man.png") # image is saved in the same dir + +except Exception as e : + + print(f" Error occurred: {e}") \ No newline at end of file