【发布时间】:2012-04-09 18:25:51
【问题描述】:
我可以在 python 中调整图像的大小到给定的高度和宽度吗,我使用 python 2.5,我尝试了本教程http://effbot.org/imagingbook/introduction.htm,我为图像安装了 PIL 库,但是当我尝试编写时:
import Image
im = Image.open("test.jpg")
我从 import:open 得到未定义的变量
虽然import Image没有给出错误?
提前致谢。
【问题讨论】:
标签: image resize python-2.5