Image scaling by factor 2
Scales an image by the given factor
Input
Expects one image file named as file parameter: file
{
"factor": "2",
"files": [
{
"name": "1600x900.png",
"type": "image/png",
"path": "testdata/images/1600x900.png"
}
]
}Output · HTTP 200
Result is a single file.
{
"statusCode": 200,
"headers": {
"content-type": "image/png"
}
}Show curl command
curl -X POST 'https://api.1001fx.com/images/scaleimage' \
-H 'X-API-KEY: YOURSECRETAPIKEY' \
-F 'file=@1600x900.png' \
-F 'factor=2'