python pillow save part of image code example
Example 1: pil crop image
im = Image.open('image.jpg')
im = im.crop((left, top, right, bottom)) # coordinates of the crop
Example 2: save imag epillow
im.save(file + ".thumbnail", "JPEG")
im = Image.open('image.jpg')
im = im.crop((left, top, right, bottom)) # coordinates of the crop
im.save(file + ".thumbnail", "JPEG")