mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-08 08:01:49 +08:00
BUG: Do not rely on PIL by default.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user