You need:
Python Interpreter > 3 and PIL library installed
or
the internal builtin Python Interpreter from 0.9.0 and up.
Code:
from PIL import Image
from io import BytesIO
Code:
for (id, href, mime) in bk.image_iter():
im = Image.open(BytesIO(bk.readfile(id)))
(width, height) = im.size
print ('id={} href={} mime={} width={} height={}'.format(id, href, mime, width,height))