ImageResizer is a Python script that utilizes the OpenCV library (cv2
) to resize images. This script allows users to specify the source image file, destination file, and the percentage by which the image should be scaled.
Before running the script, ensure you have Python installed on your system. You can install it from the official Python website.
Additionally, ensure you have Python installed on your system. You'll also need to install the OpenCV library. You can install it via pip:
pip install opencv-python
- Clone the repository to your local machine:
git clone https://github.com/subhranil002/ImageResizer.git
- Ensure you have the source image file (
example.jpeg
) in the same directory as the script. - Update the configurable parameters as needed in the script:
source
: The filename of the source image.destination
: The filename of the resized image.scale_percent
: The percentage by which the image should be scaled.
- Run the script:
python ImageResizer.py
- The resized image will be saved as specified in the
destination
variable.
Contributions are welcome! If you'd like to contribute to this project, please fork the repository and create a pull request with your proposed changes.
This project is licensed under the MIT License - see the LICENSE file for details.
Made With β€οΈ