0

I have 400 pictures of a wave and I would like to select only a strip (at the same place of the picture) in each pictures and then line them up all together. Is there a way to do it ? I'm using TIFF files and PIL

Jalyo334
  • 3
  • 2

1 Answers1

1

You can use the crop method from PIL (or PILLOW)

from PIL import Image
import glob

for filename in glob.glob('yourpath/*.tiff'):
    im = Image.open(filename)   
    w, h = im.size
    im.crop((0, 30, w-60, h-30))
salomonderossi
  • 2,180
  • 14
  • 20