Skip to main content
POST
/
utils
/
media
/
resize
Error
A valid request URL is required to generate request examples
{
  "success": true,
  "data": {
    "url": "<string>",
    "width": 123,
    "height": 123,
    "size_kb": 123
  }
}

Authorizations

Authorization
string
header
required

Enter token in format (Bearer )

Body

multipart/form-data
file
file
required

The image file to resize

width
integer
required

Target width in pixels

Example:

800

height
integer

Target height in pixels

Example:

600

mode
enum<string>

Resize mode

Available options:
fit,
fill,
crop
Example:

"fit"

quality
integer

Output quality

Required range: 1 <= x <= 100
Example:

85

Response

Image resized successfully

success
boolean
Example:

true

data
object