Apply suggestions from code review

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Yan-Ke Guo 2025-07-07 16:29:38 +08:00 committed by GUO YANKE
parent 5ce88dbe53
commit 1f7e9c3b51

View File

@ -56,8 +56,7 @@ def grab(
if bbox:
# manual crop for windowed mode
if window:
left, top, right, bottom = bbox
im_cropped = im.crop((left, top, right, bottom))
im_cropped = im.crop(bbox)
im.close()
return im_cropped
else: