This is a simple Python Script that uses opencv(cv2) and resizes an image when the user inputs the width and height of the image.
OpenCV is a library of programming functions mainly aimed at real-time computer vision. Originally developed by Intel, it was later supported by Willow Garage then Itseez. The library is cross-platform and free for use under the open-source Apache 2 License.
- Python 3 should be installed.
- Opencv library should be installed. To do that;
To run from the terminal:
cd image-resizer
python resize_images.py
- To use the script input the location of the image and image name or just the image name if you're running the script in the same directory as your image.
- Input the width that you want to resize the image to.
- Input the height that you want to resize the image to.
- Input the new image location and name.