mirror of https://github.com/CIRCL/lookyloo
fix: make mypy happy
parent
a4e520dac5
commit
61baab1fbe
|
@ -659,8 +659,8 @@ class Lookyloo():
|
||||||
to_return = BytesIO()
|
to_return = BytesIO()
|
||||||
size = 64, 64
|
size = 64, 64
|
||||||
try:
|
try:
|
||||||
screenshot = self.get_screenshot(capture_uuid)
|
s = self.get_screenshot(capture_uuid)
|
||||||
with Image.open(screenshot) as screenshot:
|
with Image.open(s) as screenshot:
|
||||||
c_screenshot = screenshot.crop((0, 0, screenshot.width, screenshot.width))
|
c_screenshot = screenshot.crop((0, 0, screenshot.width, screenshot.width))
|
||||||
c_screenshot.thumbnail(size)
|
c_screenshot.thumbnail(size)
|
||||||
c_screenshot.save(to_return, 'png')
|
c_screenshot.save(to_return, 'png')
|
||||||
|
|
Loading…
Reference in New Issue