pythonware.com ::: library ::: Python Imaging Library Handbook (2003 Edition) |
The ImageSequence module contains a wrapper class that lets you iterate over the frames of an image sequence.
ImageSequence.Iterator(image) => Iterator instance
Creates an Iterator instance that lets you loop over all frames in a sequence.
The Iterator class implements the [] operator:
You can call this operator with integer values from 0 and upwards. The iterator raises an IndexError exception when there are no more frames.