apt-get install libmagickwand-dev
pip install Wand
python sig.py file [file ...]
#!/usr/bin/env python | |
import sys | |
from wand.image import Image | |
def main(): | |
for filename in sys.argv[1:]: | |
with Image(filename=filename) as img: | |
print(img.signature) | |
if __name__ == '__main__': | |
main() |