About this endpoint
What it does
Resizes an uploaded image and returns the processed image as binary output. You can choose the output format, resizing behavior, dimensions, metadata stripping, and encoding quality.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Image file upload. Max 10 MB and 40 megapixels. Supported input formats: JPEG, PNG, WebP, AVIF, TIFF, or GIF. |
| to | ENUM | No | Output format. Allowed values: jpg, png, webp, avif. Default: same as the input. |
| fit | ENUM | No | Resize mode. Allowed values: contain, cover, fill. Default: contain. cover and fill require both width and height. |
| strip | Boolean | No | Remove EXIF, XMP, and IPTC metadata, including GPS location data. Default: false. |
| width | Integer | No | Output width in pixels. Minimum: 1, maximum: 10000. |
| height | Integer | No | Output height in pixels. Minimum: 1, maximum: 10000. |
| quality | Integer | No | Output quality for jpg, webp, and avif. Range: 1-100. Default: 85. |
Response
Returns a binary file containing the resized image. The response body is a string with binary format.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| (binary response) | String | Yes | Resized image output as binary data. |



