About this endpoint
What it does
Resizes an uploaded image and returns the resized image as binary output. The request body includes the source file and target dimensions, with an optional output format.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | The image file in PNG or JPEG format. Up to 15 MB. |
| width | Number | Yes | Target width in pixels. |
| height | Number | Yes | Target height in pixels. |
| format | String | No | Output format: png or jpeg. Default is the input format. |
Response
Returns a binary file containing the resized image. The success response is a binary payload, not a JSON object.
| Parameter | Type | Description |
|---|---|---|
| binary | String | Resized image data returned by the endpoint. |


