About this endpoint
What it does
Resizes an uploaded image using multipart form data and returns the resized file as binary output. The resize dimensions are provided as query parameters, with optional controls for output naming, format preservation, and auto-orientation.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| width | Integer | Yes | Resize width in pixels. Minimum: 1. |
| height | Integer | Yes | Resize 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 auto-orient the image. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| image | String | Yes | Image file to resize. Binary upload. |
Response
Returns a binary file response containing the resized image. The output schema is a single binary string, so there is no JSON wrapper or response fields to map.
Notes
This endpoint returns the resized image as a file rather than JSON, so callers should handle the response as binary data.