Rotate an image.
POST/image/rotate
Rotate an image.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
urlstring
The image URL
bufferstring
The image as a Base64-encoded buffer. Can be specified instead of url
.
anglenumberrequired
The clockwise rotation.
backgroundstring
The color of the space that is not occupied by the image after the rotation. Only used if angle
is not a multiple of 90 degrees. Default is #000000
.
Example:
#000000
getAsUrlboolean
Whether the result image should be returned as a URL. Default is false
.
fileNamestring
The file name of the result image. Default is a random ID.
Responses
- 200
- 400
Success
- application/json
- application/octet-stream
- Schema
- Example (auto)
Schema
urlstringrequired
The result image URL.
{
"url": "string"
}
- Schema
Schema
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}