Danish-Jamil-01 / Image-Resizer

Resize Images with the help of OpenCV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Resize Images with the help of OpenCV

License:MIT License


Languages

Language:Python 100.0%