MCPcopy Create free account
hub / github.com/e2b-dev/desktop / crop_around_point

Function crop_around_point

packages/python-sdk/tests/test_controls.py:7–10  ·  view source on GitHub ↗
(image, cursor_pos)

Source from the content-addressed store, hash-verified

5
6
7def crop_around_point(image, cursor_pos):
8 x, y = cursor_pos
9 box = (x - 50, y - 50, x + 50, y + 50) # 100x100 box
10 return image.crop(box)
11
12
13def images_are_equal(img1, img2):

Callers 1

test_right_clickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected