BUG: Do not rely on PIL by default.

This commit is contained in:
Stefan van der Walt
2011-03-15 01:16:03 +02:00
parent eab0bd6478
commit 0fb8156760
+1 -2
View File
@@ -10,8 +10,6 @@ import os.path
import numpy as np
from io import imread
from PIL import Image
class MultiImage(object):
"""A class containing a single multi-frame image.
@@ -65,6 +63,7 @@ class MultiImage(object):
self._dtype = dtype
self._cached = None
from PIL import Image
img = Image.open(self._filename)
if self._conserve_memory:
self._numframes = self._find_numframes(img)