Skip to main content
POST
/
utils
/
media
/
images
/
crop
Error
A valid request URL is required to generate request examples
{
  "success": true,
  "data": {
    "url": "<string>",
    "width": 123,
    "height": 123,
    "format": "<string>",
    "activity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

Authorization
string
header
required

Enter token in format (Bearer )

Body

multipart/form-data
width
integer
required

Crop width in pixels

Example:

800

height
integer
required

Crop height in pixels

Example:

600

image
file

The image file

url
string<uri>

Alternative: URL of image

position
enum<string>
Available options:
center,
top,
bottom,
left,
right,
top-left,
top-right,
bottom-left,
bottom-right
Example:

"center"

format
enum<string>
Available options:
jpg,
png,
webp,
gif,
avif
Example:

"webp"

keep_forever
boolean
Example:

false

Response

200 - application/json

Image cropped successfully

success
boolean
Example:

true

data
object