Feb-05-2017, 09:58 PM
Using the pillow (PIL) module:
from PIL import Image im=Image.open('image.tif') im.size
Output:(127, 16)
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net