mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +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()
|
||||
|
||||
|
||||
def lena(mode="RGB", cache={}):
|
||||
def lena(mode="RGB"): # , cache={}):
|
||||
from PIL import Image
|
||||
im = cache.get(mode)
|
||||
# im = cache.get(mode)
|
||||
if im is None:
|
||||
if mode == "RGB":
|
||||
im = Image.open("Images/lena.ppm")
|
||||
|
@ -181,7 +181,7 @@ def lena(mode="RGB", cache={}):
|
|||
im = lena("I").convert(mode)
|
||||
else:
|
||||
im = lena("RGB").convert(mode)
|
||||
cache[mode] = im
|
||||
# cache[mode] = im
|
||||
return im
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user