0

I load a TIFF file with PIL and iterate on each page with enumerate(ImageSequence.Iterator(img)). Then I have my page as TiffImageFile and try to copy to apply treatments on it. But when I try to copy it, I have the error "unrecognized image mode". When I check, the image mode seems to be 1.

How can I handle with it please?

My code :

img = Image.open(path)
img.load()
for i, page in enumerate(ImageSequence.Iterator(img)):
    page_to_update = page.copy()

0 Answers0