Image clipping

更新时间:
复制 MD 格式

This feature resizes an input image to specified dimensions. It automatically detects the location of the main entity and optimally clips the image.

Introduction

  • Name: Image Clipping/Resizing

  • Action: ChangeImageSize

Example

Parameter definitions

Input fields

Field

Type

Required

Description

url

string

Yes

The URL of the image.

width

int

Yes

The target width in pixels.

height

int

Yes

The target height in pixels.

Output fields

Field

Type

Required

Description

url

string

Yes

The URL of the resized image.

Example

Input

{
   "url": "http://ivpd-demo.oss-cn-shanghai.aliyuncs.com/ivpd****/images/ChangeImageSize/change-****e-size-src.png",
   "width": 800,
   "height": 600
}

Output

{
  code: "0",
  message: "success",
  trackId: "0b0b62c715591127811257****",
  reqeustId: "0b0b62c715591127811257189e",
  data: {
    url: 'http://luban-vgd-invi.oss-cn-hangzhou.aliyuncs.com/upload/filterwrapper-et3invipre-filterplan-193054****-fpxdd/2019-8-28/invi_filter_01566980201847100****_aqlHuF.png?Expires=1566983801&Signature=ISBLhR%2FJ7%2BTQsiYwNVdeRR8d9u****'
  }
}