diff options
Diffstat (limited to 'pngmeta.py')
-rwxr-xr-x | pngmeta.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pngmeta.py b/pngmeta.py new file mode 100755 index 0000000..e6d9b6b --- /dev/null +++ b/pngmeta.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python + +import os, sys, argparse +from PIL import Image, PngImagePlugin + +parser = argparse.ArgumentParser(description='Print PNG metadata') +parser.add_argument('image', type=str) +args = parser.parse_args() +img = Image.open(args.image) +for k, v in img.info.items(): + print('{:15}: {}'.format(k, v)) |