mirror of
https://github.com/seemoo-lab/opendrop.git
synced 2026-09-16 16:16:12 -04:00
Rename variable
This commit is contained in:
+6
-6
@@ -112,15 +112,15 @@ class AirDropUtil:
|
|||||||
|
|
||||||
# Big image
|
# Big image
|
||||||
im.thumbnail((540, 540), Image.ANTIALIAS)
|
im.thumbnail((540, 540), Image.ANTIALIAS)
|
||||||
imgByteArr = io.BytesIO()
|
img_bytes = io.BytesIO()
|
||||||
im.save(imgByteArr, format="JPEG2000")
|
im.save(img_bytes, format="JPEG2000")
|
||||||
file_icon = imgByteArr.getvalue()
|
file_icon = img_bytes.getvalue()
|
||||||
|
|
||||||
# Small image
|
# Small image
|
||||||
# im.thumbnail((64, 64), Image.ANTIALIAS)
|
# im.thumbnail((64, 64), Image.ANTIALIAS)
|
||||||
# imgByteArr = io.BytesIO()
|
# img_bytes = io.BytesIO()
|
||||||
# im.save(imgByteArr, format='JPEG2000')
|
# im.save(img_bytes, format='JPEG2000')
|
||||||
# small_file_icon = imgByteArr.getvalue()
|
# small_file_icon = img_bytes.getvalue()
|
||||||
|
|
||||||
return file_icon
|
return file_icon
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user