mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-05 13:00:09 +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.
|
||||
"""
|
||||
|
||||
self.load()
|
||||
if box is None:
|
||||
return self.copy()
|
||||
|
||||
else:
|
||||
self.load()
|
||||
# lazy operation
|
||||
return _ImageCrop(self, box)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user