Cropping Image Using Python Using Python Pillow Library Crop Image. Automatically cropping image by horizontally and vertically pip install requirements.txt Run Python Script python imagecrop.py Set Your image name image_input = Image.open("image_name.jpg") Example image_input = Image.open("flowers.jpg")