Crop the image as required; one can crop in the center and crop into designated rectangle.
Parameters:
Actions mode | Instruction meaning | Parameter format | Parameter description | Result description |
---|---|---|---|---|
Center crop | crop center | cc/w/h | W resultant crop width H resultant crop height value range[1,9999] |
Center crop with artwork range, resultant aspect ratio is the maximum inscribed rectangle |
Crop into designated rectangle | crop rect | cr/w/h/x/y | W resultant crop width H resultant crop height value range[1,9999] X resultant crop X coordinate at top left corner Y resultant crop Y coordinate at top left corner value range[0,9999] |
Crop top left corner is within the rectangle zone constituted by x, y and width and height w and h; if exceeding the artwork range, it is end till the artwork edge |
For example: crop the image in the center with aspect ratio: 300*200
http://s3.cn-north-1.jdcloud-oss.com/downloads/example.jpg?x-oss-process=img/cc/300/200