Add a note about sequential access.

This commit is contained in:
Steven Silvester
2014-10-23 05:42:21 -05:00
committed by Stefan van der Walt
parent 1c0d86a48d
commit bf9bcaaf0d
+1
View File
@@ -74,6 +74,7 @@ def pil_to_ndarray(im, dtype=None, img_num=None):
while 1:
frame = im.seek(i)
# seeking must be done sequentially
if img_num and not i == img_num:
i += 1
continue