This Python script utilizes the OpenCV library to resize images in a specified folder and saves the resized images in a new directory. It's particularly useful for batch resizing images.
-
Python 3.x
-
OpenCV (pip install opencv-python)
- Clone the repository to your local machine:
git clone https://github.com/Danish-Jamil-01/Image-Resizer.git
- Navigate to the directory containing the script:
cd Image-Resizer
- Ensure your images are placed in the Images folder.
- Run the script:
python image_resizer.py
- Resized images will be saved in the Resized Images folder.
-
You can modify the dimensions of the resized images by changing the parameters in the 'cv2.resize()' function.
-
Adjust the input folder name ('Images') and output folder name ('Resized Images') as per your requirements.
This project is licensed under the MIT License.