This project depends on PIP/Pillow. Use the package manager pip to install Pillow.
pip3 install Pillow
python JPGtoPNG.py [image_folder] [output_folder]
I've attached a folder containing 4 .jpg pictures from Pokémons, it works with several files at once inside a folder.
python JPGtoPNG.py pokedex/ new_pokedex/