Swarnendu0123 / pokedex_img_converter

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

Closed divi-259 closed 1 year ago

divi-259 commented 1 year ago

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: ")