Normal Crop
Updated at:2025-11-03
Overview
This document explains how to perform rectangular cropping on images.
Normal clopping parameters
Action name: crop
| Parameters | Value | Description |
|---|---|---|
| x | 0 - Image width | Crop the x-coordinate of the top-left starting point relative to the origin. Optional, default value is 0. |
| y | 0 - Image height | Crop the y-coordinate of the top-left starting point relative to the origin. Optional, default value is 0. |
| w | 1-4096 | Specify the width for the cropped image. If the chosen width exceeds the image's width, cropping will be limited to the actual width of the image. Unit: px. Optional, default is the original image's width. |
| h | 1-4096 | Specify the height for the cropped image. If the chosen height exceeds the image's height, cropping will be limited to the actual height of the image. Unit: px. Optional, default is the original image's height. |
Example
- Crop the image starting from the coordinate (10, 10) to a size of 200 * 200:
https://doc.bce.baidu.com/bce-documentation/BOS/image.jpg?x-bce-process=image/crop,x_10,y_10,w_200,h_200

