LogoLogo
  • Overview
  • Quick Start
  • Authentication
  • Rate limits
  • Errors
  • Image Editing API
    • Image I/O
    • Image Operations
      • Restorations
      • Resizing
      • Outpainting
      • Generative Editing
      • Color Adjustments
      • Background
      • Padding
      • Privacy
    • API Reference
    • Async API Reference
    • Batch API Reference
    • Upload API Reference
  • image generation api
    • Image Generation I/O
    • Image Generation Options
    • API Reference
  • AI Background API
    • AI Background I/O
    • AI Background Options
      • Object
      • Scene
      • Product Shadow
    • API Reference
  • Image to Video API
    • Image to Video I/O
    • Image to Video Options
    • Async API Reference
  • Storage Connectors
    • Overview
    • AWS S3
    • Google Cloud Storage
    • Web Folder
    • API Reference
  • Guides
    • E-commerce
    • Real Estate
    • Printing
  • Redoc
  • Blog
Powered by GitBook
On this page
  • ML Color Adjustments
  • Manual Color Adjustments
Edit on GitHub
  1. Image Editing API
  2. Image Operations

Color Adjustments

PreviousGenerative EditingNextBackground

Last updated 1 year ago

Changes image histogram. By setting up adjustments, you can ensure that output images meet the required brightness, saturation, and dynamic range.

Color and light adjustments offer both fully and manual .

ML Color Adjustments

Balance out colors and lighting. Supports changing the intensity of operation. 100 is most recommended. For 360 images you can use Edge Stitching.

JSON Request:

"operations": {
    "adjustments": {
        "hdr": 100
    }
}

JSON Request:

"operations": {
    "adjustments": {
        "hdr": {
            "intensity": 100,
            "stitching": true
        }
    }
}

Manual Color Adjustments

ML color adjustments have an automated option (hdr) that covers most cases. But if you need finer control over color and lighting, you can use the operations listed in this section.

All operations below use relative rather than absolute values. They take into account the initial values of the images. For example, if an image is very dark, you might want to set the exposure to a higher value compared to cases when photos of slight underexposure.

You can control exposure, saturation, contrast, sharpness.

Possible values

Parameter
Type
Range
Description

exposure

integer

-100 - 100

Decrease (negative integer) or increase (positive) exposure.

saturation

integer

-100 - 100

Decrease (negative integer) or increase (positive) saturation.

contrast

integer

-100 - 100

Decrease (negative integer) or increase (positive) contrast.

sharpness

integer

0 - 100

Increase sharpness.

JSON Request

"operations": {
    "adjustments": {
        "exposure": 80
    }
}
"operations": {
    "adjustments": {
        "saturation": 15
    }
}
"operations": {
    "adjustments": {
        "contrast": 10
    }
}
"operations": {
    "adjustments": {
        "sharpness": 15
    }
}
automated options
fine-tuning