API: Soft-expand

Expands an image by warping the sides of the image.

Request
POST /process/soft-expand?left=100&top=100&right=100&bottom=100&input=0a6677...
input The input image ID.
left, top, right, bottom The amount of pixels to add.
slope A value between 0.2 and 0.6. Larger values use a larger border and result in a more graceful expansion.
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).