Skip to content

Danish-Jamil-01/Image-Resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Resizing with OpenCV


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.


Prerequisites

  • Python 3.x

  • OpenCV (pip install opencv-python)


Usage

  1. Clone the repository to your local machine:
    git clone https://github.com/Danish-Jamil-01/Image-Resizer.git

  2. Navigate to the directory containing the script:
    cd Image-Resizer

  3. Ensure your images are placed in the Images folder.

  4. Run the script:
    python image_resizer.py

  5. Resized images will be saved in the Resized Images folder.

Customization

  • 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.


License

This project is licensed under the MIT License.