About this endpoint
What it does
Generates a thumbnail from an uploaded image file and returns a JSON object containing a data URI string for the generated result.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| width | Integer | Yes | Thumbnail width in pixels. Minimum: 1. |
| height | Integer | Yes | Thumbnail height in pixels. Minimum: 1. |
| output | String | No | Output name. |
| preserve_format | Boolean | No | Whether to preserve the original image format. |
| auto_orientation | Boolean | No | Whether to apply automatic orientation handling. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| image | String | No | Image file to upload. Format: binary. |
Response
Returns a JSON object with a data string field formatted as a URI. This field contains the generated thumbnail location or reference.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | String | N/A | URI for the generated thumbnail. Format: uri. |