About this endpoint
What it does
Resizes an image fetched from a URL and returns the resized file as a binary download. The request provides the source image URL in the body and the target dimensions in query parameters.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| width | Integer | Yes | Target image width in pixels. Minimum: 1. |
| height | Integer | Yes | Target image height in pixels. Minimum: 1. |
| output | String | No | Output filename prefix. |
| preserve_format | Boolean | No | Preserve the original image format. |
| auto_orientation | Boolean | No | Automatically apply the image's orientation metadata. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | Source image URL. Format: URI. |
Response
Returns a binary file containing the resized image. The response schema is a binary string, so the success payload is the downloaded image itself rather than a JSON object.