This commit is contained in:
VerstreuteSeele
2023-01-07 02:30:14 +01:00
parent e1cba0867c
commit fbd162c4e3
31 changed files with 533 additions and 451 deletions

View File

@@ -104,7 +104,7 @@ def file2image(file):
data_enc = bytearray(data_encoded_str)
data_enc = bytearray([len(data_enc) & 0xFF, len(data_enc) >> 8]) + data_enc
# Use encoded data only if its lenght less than original, including header
# Use encoded data only if its length less than original, including header
if len(data_enc) < len(data_bin) + 1:
data = b"\x01\x00" + data_enc
else: