import bpy
def powtest(i) :
r = 2
while r < i : r *= 2
if r == i : return 0
return r
for img in bpy.data.images :
x,y = img.size
if x == 0 or y == 0:
print('%sx%s %s'%(x,y,img.name))
print(' buffer, ghost ?')
print(' %s'%img.filepath)
continue
xp = powtest(x)
yp = powtest(y)
if xp or yp :
print('%sx%s %s'%(x,y,img.name))
print(' %s'%img.filepath)
if xp :
print(' x %s should be %s or %s'%(x,int(xp/2),xp))
if yp :
print(' y %s should be %s or %s'%(y,int(yp/2),yp))