【发布时间】:2022-01-06 02:09:36
【问题描述】:
如何在不使用任何不属于 Python 标准库的模块(可能 PIL 除外)的情况下找到具有 any 扩展名的图像的分辨率?
【问题讨论】:
-
Image.open("filename").size?Image可以从PIL导入,它们支持ton of file formats -
@GammaGames 太棒了!非常感谢,效果很好。您可以将其添加为答案吗?
-
这能回答你的问题吗? setting image resolution in Python pillow
-
呃...不,它没有...我想读取图像分辨率,而不是设置它。无论如何,@GammaGames 的评论已经帮助了我
标签: python python-imaging-library