开发者

Simplest way to calculate the width and height of a jpeg image in Python

How can I calculate the width and h开发者_如何转开发eight of an image in Python? I'm using the "Image" library already if that makes it easier.

Thanks.


im=Image.open(pic) 
print im.size 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜