PokeDex Image Converter is a Python script that converts images of Pokémon from the poke_dex folder to PNG format. The script takes images with names ['bulbasaur.jpg', 'charmander.jpg', 'pikachu.jpg', 'squirtle.jpg'] and converts them to PNG files.
7
stars
7
forks
source link
Taking destination image type as command line input #2
We can take destination image type like .png, .jpeg, .svg etc in the script input along with src and dest folder,
if the user does not provide anything, we can default to .png.
This will require to take one extra argument, and will need some modification to handle in the code.
As an enhancement - we can also ask the user for the image type for the destination folder, something like -
print("Select the desired output format:")print("1. PNG")print("2. JPEG")choice = input("Enter the number of your choice: ")
We can take destination image type like .png, .jpeg, .svg etc in the script input along with src and dest folder, if the user does not provide anything, we can default to .png.
This will require to take one extra argument, and will need some modification to handle in the code.
As an enhancement - we can also ask the user for the image type for the destination folder, something like -
print("Select the desired output format:")
print("1. PNG")
print("2. JPEG")
choice = input("Enter the number of your choice: ")