I'm working with satellites images and i need to select one part of the image to work if. How can i do it? Im.crop doesn't seen to work. Resize?
Thanks
from PIL import Image
im = Image.open("test.jpg")
crop_rectangle = (50, 50, 200, 200)
cropped_im = im.crop(crop_rectangle)
cropped_im.show()
Note that the crop region must be given as a 4-tuple - (left, upper, right, lower).
More details here Using the Image Class
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With