mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
Revert NFC u2f
This commit is contained in:
@@ -60,10 +60,7 @@ class ImageTools:
|
||||
with Image.open(file) as im:
|
||||
with io.BytesIO() as output:
|
||||
bw = im.convert("1")
|
||||
try:
|
||||
bw = ImageOps.invert(bw)
|
||||
except OSError:
|
||||
bw = bw.point(lambda x: 255 - x)
|
||||
bw = ImageOps.invert(bw)
|
||||
bw.save(output, format="XBM")
|
||||
return output.getvalue()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user