Transformation of the input image with specified dimensions, automatic determination of the position of the main area, and use of the best crop method.
Documentation Index
Fetch the complete documentation index at: https://ailabtools.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
https://www.ailabapi.com/api/image/editing/image-croppingPOSTmultipart/form-dataJPEG JPG PNG BMP WEBP| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
| Field | Required | Type | Description |
|---|---|---|---|
image | YES | file | |
width | YES | integer | The width of the target. Unit: px. |
height | YES | integer | The height of the target. Unit: px. |
| Field | Type | Description |
|---|---|---|
data | object | The content of the result data returned. |
+url | string | The URL address of the image after size transformation. |
+retain_location | object | The coordinate information of the original image data in the generated image. |
++width | integer | Outputs the width of the original image after isoscaling according to the specified width. Unit: px. |
++height | integer | Outputs the height of the original image after isoscaling according to the specified height. Unit: px. |
++y | integer | The y-coordinate of the upper-left corner of the original figure. |
++x | integer | The x coordinate of the upper left corner of the original figure. |