Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert multiple jpg files to png using python

from PIL import Image
import glob

counter = 0
for image in glob.glob("./*.jpg"):
    counter = counter + 1
    img = Image.open(image)
    img.save(str(counter)+'new_image.png','png')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #multiple #jpg #files #png #python
ADD COMMENT
Topic
Name
5+5 =