This project is meant for those who want to change the format of an image or those who wish to resize their image. This project is awesome because it uses Command Line Interface, which means you can now convert image formats and resize images using command prompt which makes you look cool! You can blow other people's mind by resizing images using the command prompt.
Python 12
- Typer
- Pillow
First we need to install python, To install python click here. Then we have to install Typer module and Pillow module.
To install Typer module type the following command in bash
pip install typer
To install Pillow module use the following command in bash
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow
If you have issues installing any of the modules refer to these documentations Pillow documentation Typer installation
After installing the required modules, Open command prompt and navigate to the folder where the python file is saved. then run the follow command
python3 main.py
Step 1) Input the directory where your image is situated. Step 2) Choose whether you want to resize or format. Step 3) If you wish to resize enter the pixel values for resizing. Make sure to enter height first and then width. Step 4) Enter where you would like to save the file Step 5) Navigate to that folder and you will have the resized image. The name of the file will be "resized image" Step 5) If instead you wish to format. First enter the format to which you would like to convert. Step 6) Enter the folder where you would like to save the file. Step 7) The formatted image will be available in the destination folder with the same name but different format.