Image I/O

Input

Our API supports several options to provide source images that need to be processed.

HTTP(S) URL

URL of the input image should be from 1 to 512 characters. The image must be accessible by our system.

{
    "input": "https://letsenhance.io/docs/assets/samples/burger.jpg"
}

Image upload

Our API also supports the ability to upload image content directly. Just make sure that all respective headers are set. See Upload API Reference for more info.

Connected storage

You can connect Cloud Storage and use it as a source for images. Currently, our API supports AWS S3 and Google Cloud Storage.

After connecting your Cloud Storage, you can refer the storage name as an input.

{
    "input": "storage://storage-name/path/image-name.jpg"
}

Input image file types

Our API supports the following image formats as inputs: BMP, GIF, JPEG, PNG, TIFF, WEBP, AVIF, and HEIC.

Output

Configuration of result output is optional.

By default, you may omit the output option from the request payload. In this case, our system stores the result in a temporary bucket with a lifespan of 24 hours and provides a public URL to the image.

Alternatively, you can use a connected Cloud Storage: just configure the path to the folder where you want to store results.

Output image file types

The following image formats are supported for the output: JPEG, PNG, WEBP, and AVIF.

Basic and advanced output options

{
    "output": "storage://storage-name/result-path/image-name.jpg"
}

See the full list of the advanced format-specific options below:

Color space

"output": {
    "destination": "storage://storage-name/result-path/image-name.jpg",
    "metadata": {
        "color_space": "RGB"
    }
}

For CMYK color space, you also can specify the color profile that will be applied to the image.

"output": {
    "destination": "storage://storage-name/result-path/image-name.jpg",
    "metadata": {
        "color_space": {
            "type": "CMYK",
            "color_profile": "ISO_Coated"
        }
    }
}

* "Total Area Coverage” – or TAC for short – refers to the amount of ink coverage called for in a given area of an image. It's calculated by summing the Cyan, Magenta, Yellow and Black percentages in that area.

Color space is only supported in JPEG format.

Last updated