Fix handling of non-gif and tiff files

This commit is contained in:
Steven Silvester
2015-03-30 21:41:44 -05:00
parent e531e57124
commit ad8c94fcaf
+2 -2
View File
@@ -135,7 +135,7 @@ class ImageCollection(object):
ic = ImageCollection('/tmp/*.png', load_func=imread_convert)
For files with multiple images, the images will be flattened into a list
and added to the list of available images. In this case, ``load_func``
and added to the list of available images. In this case, ``load_func``
should accept the keyword argument ``img_num``.
Examples
@@ -222,7 +222,7 @@ class ImageCollection(object):
if hasattr(im, 'fp') and im.fp:
im.fp.close()
else:
index += (fname, 0)
index += [(fname, 0)]
self._frame_index = index
return len(index)