API: Converting an image to another format

Converts an image of almost any format to either JPEG or PNG.

Request
POST /process/convert?input=0a6677...&outputFormat=PNG
input The input image ID.
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
{
  "outputFormat": {
    "extension": "jpeg",
    "mimeType": "image/jpeg",
    "quality": 95,
  }
  "output": "f33608..."
}
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).