开发者

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

开发者 https://www.devze.com 2023-01-19 07:35 出处:网络
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.

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

精彩评论

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