From a79ab969533320582482856758394e74739b152e Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 29 Jul 2013 18:51:18 +0200 Subject: Made a proper python package out of this. --- pngmeta | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 pngmeta (limited to 'pngmeta') diff --git a/pngmeta b/pngmeta new file mode 100755 index 0000000..e6d9b6b --- /dev/null +++ b/pngmeta @@ -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)) -- cgit