Commit 474de88f authored by Guido van Rossum's avatar Guido van Rossum

Print real width and warn for stride not a multiple of 4 bytes

parent c4b72842
......@@ -61,7 +61,11 @@ def main():
else:
size = (w/pf) * (h/pf)
print name, ':', w, 'x', h, '; pf =', pf, ', size =', size,
if pf == 0: print '(color)',
if pf == 0:
print '(color)',
else:
print '(' + `(w/pf)` + 'x' + `(h/pf)` + ')',
if (w/pf)%4 <> 0: print '!!!',
print
num = 0
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment