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:
@ -32,7 +32,7 @@ if __name__ == '__main__':
|
|||||||
if not size:
|
if not size:
|
||||||
print('Invalid size')
|
print('Invalid size')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
f.seek(0)
|
f.seek(-7 - size, 2)
|
||||||
wms = f.read(size)
|
wms = f.read(size)
|
||||||
# Watermarks are always 24 Byte long.
|
# Watermarks are always 24 Byte long.
|
||||||
if len(wms) % 24 != 0:
|
if len(wms) % 24 != 0:
|
||||||
|
Reference in New Issue
Block a user