Add a note about sequential access.

This commit is contained in:
Steven Silvester authored and Stefan van der Walt committed 2014-11-07 15:22:19 +02:00
1 parent 1c0d86a48d
commit bf9bcaaf0d
1 file changed
+1
+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