Clean up

Remove unwanted elements from an image using a mask to specify areas to clean

Body Params

Image file upload and mask file upload Size of an image uploaded must not exceed 30MB and resolution must not exceed 16 mega-pixels Size of a mask uploaded must not exceed 30MB and resolution must not exceed 16 mega-pixels Both image and mask must have the same size

file

The image to be cleaned

file

The mask indicating areas to clean The mask should be black and white with no grey pixels (e.g. values of only 0 or 255), the value of 0 indicating a pixel to keep as is and 255 a pixel to 'clean up'

Headers
string
enum

The Accept request HTTP header indicates the preferred returned image content type, expressed as a MIME type

Allowed:
Responses
200

The image was successfully cleaned.

400

Bad request. May be missing required inputs or may have badly formatted inputs or options.

500

Internal server error. Unable to clean image.

Language
Credentials
Response
Click Try It! to start a request and see the response here!