mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 03:21:44 +03:00
Comment out lena() caching
This commit is contained in:
parent
0eb92eccd7
commit
4ab5b6c583
|
@ -169,9 +169,9 @@ def tostring(im, format, **options):
|
||||||
return out.getvalue()
|
return out.getvalue()
|
||||||
|
|
||||||
|
|
||||||
def lena(mode="RGB", cache={}):
|
def lena(mode="RGB"): # , cache={}):
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
im = cache.get(mode)
|
# im = cache.get(mode)
|
||||||
if im is None:
|
if im is None:
|
||||||
if mode == "RGB":
|
if mode == "RGB":
|
||||||
im = Image.open("Images/lena.ppm")
|
im = Image.open("Images/lena.ppm")
|
||||||
|
@ -181,7 +181,7 @@ def lena(mode="RGB", cache={}):
|
||||||
im = lena("I").convert(mode)
|
im = lena("I").convert(mode)
|
||||||
else:
|
else:
|
||||||
im = lena("RGB").convert(mode)
|
im = lena("RGB").convert(mode)
|
||||||
cache[mode] = im
|
# cache[mode] = im
|
||||||
return im
|
return im
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user