Initial import of unaltered files.
[autoys] / coverart / chkimgsz
1 #! /usr/bin/python
2
3 from PIL import Image as I
4 from sys import argv, stdin
5
6 minx, miny = map(int, argv[1:])
7
8 for line in stdin:
9 if line and line[-1] == '\n': line = line[:-1]
10 x, y = I.open(line).size
11 if x < minx or y < miny: print '%s (%dx%d)' % (line, x, y)