<Python, PIL> 画像イメージのサイズ取得。

pngファイルの画像イメージのサイズを取得。

PILを使う。

In [2]: import PIL.Image

In [3]: f = PIL.I
PIL.Image      PIL.ImageMode

In [3]: f = PIL.Image.o
PIL.Image.open  PIL.Image.os

In [3]: f = PIL.Image.open('hogehoge.png')

In [4]: f.size[0]
Out[4]: 2983

In [5]: f.size[1]
Out[5]: 288

ここで教えてもらった。
cortyuming.hateblo.jp