使用python调整基于宽度,高度条件的图像

时间:2015-08-12 07:54:28

标签: python image-processing

Heere是我的规格

libnetfilter_queue.c:33:39: fatal error: libnfnetlink/libnfnetlink.h: No such file or directory

我在这里尝试过:

The extension .jpg/.png for Image is required to proper display
‐ The dimension of Landscape image max-width: 1618px, if smaller keep the
original
‐ The dimension of Portrait image max-height: 920px, if smaller keep the original
‐ Full path to server of img_path is required
‐ File name of image original starts with prefix “original”. The file name should be
original_imagename.

我的图片有什么问题调整代码大小,因为我总是将重新调整大小的图像作为原始图像。

1 个答案:

答案 0 :(得分:1)

来自first link on google

  

调整大小#

     

im.resize(尺寸)⇒图像

     

im.resize(尺寸,滤镜)⇒图像

     

返回图像的已调整大小的副本。

函数Console返回一个新图像,因此您应该像这样使用它:

resize