API: Intelligent crop

Applies the croppola algorithm to find the most interesting part of an image. An online tool is available for this API call.

Request
POST /process/croppola?width=800&height=600&input=0a6677...
input The input image ID.
width The desired width of the crop.
height The desired height of the crop.
outputFormat The desired output format. Valid formats are PNG and JPEG.
outputQuality The desired JPEG compression quality, an integer between 50 and 100. The default value is 95 (high quality). Values below 85 may lead to visible compression artefacts.
Response
200 OK
{
  "crop": [80, 140, 640, 320], 
  "output": "a1b002.."
}
crop The applied crop rectangle (x, y, width, height).
output The produced image.
outputFormat
The format of the output image:
  • extension: The format extension, e.g. "png".
  • mimeType: The media type of the format, e.g. "image/png".
  • quality: The JPEG compression quality (JPEG pictures only).