我用 google 搜索了有关在 python 中调整图像大小的信息。但我发现在 python 3.2 中没有任何帮助。
有什么办法可以解决我的问题吗?
我不需要任何复杂的图像处理,只需要一个在 python 3.2 上运行的调整大小功能。
请给我一些建议。
谢谢。
请您参考如下方法:
Pillow是 PIL 的一个分支,除了它已更新并支持 Python 3x。您应该考虑使用 Pillow,因为它的界面与 PIL 非常相似。例如。 syntax for geometrical transformations [resizes] 是一样的:
im = Image.open("foo.png")
out = im.resize((128, 128))
