mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-18 19:24:47 +03:00
Update Image.py
Trying to save some memory when many pictures are opened at a time.
This commit is contained in:
parent
e4faa1069a
commit
728ccdc4b6
|
@ -2444,6 +2444,7 @@ def open(fp, mode="r"):
|
|||
|
||||
if im:
|
||||
im._exclusive_fp = exclusive_fp
|
||||
fp.close()
|
||||
return im
|
||||
|
||||
if exclusive_fp:
|
||||
|
|
Loading…
Reference in New Issue
Block a user