Baidu AI Cloud
中国站

百度智能云

Object Storage

Index Cropping

Overview

This document introduces the cropping of the image index.

Index Cropping Parameters

Action name: indexcrop

Parameters Value Description
x 1*4096 x and y cannot be specified at the same time, and either x or y must be specified. In the case of longitudinal cropping, you need to specify the cropping width. If cropping width exceeds the image width, it is the image width by default.
y 1*4096 x and y cannot be specified at the same time, and either x or y must be specified. In the case of transverse cropping, you need to specify the cropping height. If the cropping height exceeds the image height, it is the image height by default.
i 0*65536 Specify the ith cropping area after cropping. If the cropping area exceeds the number of cropping areas, it returns the original image. If not specified, the default value is 0.

Example

Previous
Rounded Rectangle Cropping
Next
Image Rotation