【发布时间】:2019-03-08 04:25:00
【问题描述】:
说一张大小为(width = 200, height = 250)的图片
我想把大小改成(width = 400, height = 250)
如果不给出错误“IndexError: image index out of range”,这怎么可能?
【问题讨论】:
-
好吧,如果真的想这样做,图像会看起来很时髦。
-
到目前为止你尝试过什么
-
你可以尝试使用这个 python 库,但是如上所述调整大小可能会使图像变得奇怪pypi.org/project/python-resize-image
-
你可以使用PIL
标签: python image height width image-resizing