add iterator and indexed access to the ImageList

#1 Merged
Repository
jerzyk
Branch
default
Repository
hhatto
Branch
default
Author
  1. jerzyk
Reviewers
Description

e.g. save all animated GIF images to separate files: {{{ from pgmagick import ImageList

image_list = ImageList() image_list.readImages('animated.gif') for image, index in zip(image_list, range(len(image_list))): image.write('slide%d.gif' % index) }}}

Comments (0)