Python 3 Script to Convert JPG to PNG Image Using Pillow Imaging Library Full Project For Beginners





In order to proceed you must have python installed on your machine and then you must install pillow library on your system like this



pip install pillow



After installing pillow you create a file and copy paste the following code



from PIL import Image

image ="input.jpg")"output.png")




Here we have used the open method to first of all open the image and then we have used the save method to convert the image from jpg to png. You can also do the reverse process as well.


Now for running this python script you just need to run the following command




See also  Python 3 Kivy Rock Paper Scissors Game Script Using Random Module GUI Desktop App Full Project For Beginners


Leave a Reply