1
0
mirror of https://github.com/takeshixx/redstar-tools synced 2025-07-17 20:43:21 +00:00

Extract watermarks from actual files

This commit is contained in:
takeshix
2016-09-13 09:16:54 +02:00
parent f1532dc155
commit d6df4da19b

View File

@ -32,7 +32,7 @@ if __name__ == '__main__':
if not size:
print('Invalid size')
sys.exit(1)
f.seek(0)
f.seek(-7 - size, 2)
wms = f.read(size)
# Watermarks are always 24 Byte long.
if len(wms) % 24 != 0: