diff options
author | jaseg <s@jaseg.de> | 2013-07-29 18:51:18 +0200 |
---|---|---|
committer | jaseg <s@jaseg.de> | 2013-07-29 18:51:18 +0200 |
commit | a79ab969533320582482856758394e74739b152e (patch) | |
tree | 59e320c15a282cb57318683815c8e3d529e2f087 /pngmeta | |
parent | 62e62f1eace5899d0176ef0dd1b66c6ef72f7ab0 (diff) | |
download | pixelterm-a79ab969533320582482856758394e74739b152e.tar.gz pixelterm-a79ab969533320582482856758394e74739b152e.tar.bz2 pixelterm-a79ab969533320582482856758394e74739b152e.zip |
Made a proper python package out of this.
Diffstat (limited to 'pngmeta')
-rwxr-xr-x | pngmeta | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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)) |