Fix file indexing in ImageCollection

This commit is contained in:
Steven Silvester
2014-12-12 09:38:48 -06:00
parent ed8524961c
commit a4a628b529
+2 -2
View File
@@ -210,12 +210,12 @@ class ImageCollection(object):
else:
i = 0
while True:
i += 1
index.append((fname, i))
try:
im.seek(i)
except EOFError:
break
index.append((fname, i))
i += 1
if hasattr(im, 'fp') and im.fp:
im.fp.close()