You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use MacBook with Retina display, so when I ran the simple code below:
from python_imagesearch import imagesearch
img = "pics/testimg.png"
print(imagesearch.imagesearch(img))
I got this error:
.venv/lib/python3.11/site-packages/python_imagesearch/imagesearch.py", line 124, in imagesearch
im.thumbnail((round(im.size[0] * 0.5), round(im.size[1] * 0.5)))
^^^^^^^^^^^^
AttributeError: 'ScreenShot' object has no attribute 'thumbnail'
It looks like conditions with the is_retina variable doesn't work properly, because if I comment these lines:
I use MacBook with
Retina
display, so when I ran the simple code below:I got this error:
It looks like conditions with the
is_retina
variable doesn't work properly, because if I comment these lines:The code will execute without errors, but I'm not sure that trick won't break anything. 🤔
The text was updated successfully, but these errors were encountered: