<filename>JpgToPngConverter.py
import sys
import os
from PIL import Image

# grab the first and second argument
image_folder = sys.argv[1]
output_folder = sys.argv[2]

#check if new\ exists, if not creat it
if not os.path.isdir(output_folder):
    os.mkdir(output_folder)
#loop through POkedex
#then convert JPG to PNG
path = os.getcwd()
for filename in os.listdir(image_folder):
    img = Image.open(f'{image_folder}{filename}')
    clean_name = os.path.splitext(filename)[0]
    print(clean_name)
    img.save(f'{output_folder}{clean_name}.png', 'PNG')

print("all done!")
#save to the new folder
<filename>JpgToPngConverter.py
import sys
import os
from PIL import Image

# grab the first and second argument
image_folder = sys.argv[1]
output_folder = sys.argv[2]

#check if new\ exists, if not creat it
if not os.path.isdir(output_folder):
    os.mkdir(output_folder)
#loop through POkedex
#then convert JPG to PNG
path = os.getcwd()
for filename in os.listdir(image_folder):
    img = Image.open(f'{image_folder}{filename}')
    clean_name = os.path.splitext(filename)[0]
    print(clean_name)
    img.save(f'{output_folder}{clean_name}.png', 'PNG')

print("all done!")
#save to the new folder
# grab the first and second argument #check if new\ exists, if not creat it #loop through POkedex #then convert JPG to PNG #save to the new folder