Image crop
Returns a cropped image
Input
{
"x": "200",
"y": "200",
"width": "200",
"height": "200",
"files": [
{
"name": "1600x900.png",
"type": "image/png",
"path": "testdata/images/1600x900.png"
}
]
}Output · HTTP 200
{
"statusCode": 200,
"headers": {
"content-type": "image/png"
}
}Show curl command
curl -X POST 'https://api.1001fx.com/images/cropimage' \
-H 'X-API-KEY: YOURSECRETAPIKEY' \
-F 'file=@1600x900.png' \
-F 'x=200' \
-F 'y=200' \
-F 'width=200' \
-F 'height=200'