Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 python 中安装了枕头,并在定义中使用了模块。
我试过这样做:
pil_image = Image.open(url) cvs=str('L,W:') + str(pil_image.size)+str('H,V:') + str(pil_image.info['dpi'])
某些图像在属性中没有信息,因此 DPI 不起作用。我还需要填充 PPI。
你能建议一个解决方案吗?