mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-06 13:30:10 +03:00
Update Image.py
removed unnecessary self.load call
This commit is contained in:
parent
73eafbb55f
commit
31a33e35ce
|
@ -918,10 +918,10 @@ class Image:
|
||||||
:returns: An :py:class:`~PIL.Image.Image` object.
|
:returns: An :py:class:`~PIL.Image.Image` object.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self.load()
|
|
||||||
if box is None:
|
if box is None:
|
||||||
return self.copy()
|
return self.copy()
|
||||||
|
else:
|
||||||
|
self.load()
|
||||||
# lazy operation
|
# lazy operation
|
||||||
return _ImageCrop(self, box)
|
return _ImageCrop(self, box)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user