# Color Adjustments

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 [automated options](https://www.notion.so/Claid-Marketing-API-docs-in-progress-35d651c7f35f442b8adfec83531fc14c) and manual [fine-tuning](https://www.notion.so/Claid-Marketing-API-docs-in-progress-35d651c7f35f442b8adfec83531fc14c).

### 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.

{% tabs %}
{% tab title="HDR" %}

#### **JSON Request:**

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

![](https://1549088094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrPciCr3QshdCGkhkBgKD%2Fuploads%2FSZY1YGzYYYQTXmgCclGu%2FColor%20Adjustments%20-%20ML%20-%20HDR.png?alt=media\&token=4dd7138a-dde4-4242-a2c8-dcb736018a78)
{% endtab %}

{% tab title="Edge Stitching" %}
**JSON Request:**

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

![](https://1549088094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrPciCr3QshdCGkhkBgKD%2Fuploads%2FkAp2oflypGWy0xX1vpmR%2FColor%20Adjustments%20-%20ML%20-%20Edge%20Stitching.png?alt=media\&token=6b100a78-f301-42ea-90bc-d718d180e011)
{% endtab %}
{% endtabs %}

### 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`

<table><thead><tr><th width="189">Parameter</th><th width="150">Type</th><th width="151">Range</th><th>Description</th></tr></thead><tbody><tr><td>exposure</td><td>integer</td><td>-100 - 100</td><td>Decrease (negative integer) or increase (positive) exposure.</td></tr><tr><td>saturation</td><td>integer</td><td>-100 - 100</td><td>Decrease (negative integer) or increase (positive) saturation.</td></tr><tr><td>contrast</td><td>integer</td><td>-100 - 100</td><td>Decrease (negative integer) or increase (positive) contrast.</td></tr><tr><td>sharpness</td><td>integer</td><td>0 - 100</td><td>Increase sharpness.</td></tr></tbody></table>

**JSON Request**

{% tabs %}
{% tab title="Exposure" %}

```json
"operations": {
    "adjustments": {
        "exposure": 80
    }
}
```

![](https://1549088094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrPciCr3QshdCGkhkBgKD%2Fuploads%2F63w414l7yloorHMYTJaq%2FColor%20Adjustments%20-%20Manual%20-%20Exposure.png?alt=media\&token=0695b0f7-c73f-4094-bad5-78a8ec34d15e)
{% endtab %}

{% tab title="Saturation" %}

```json
"operations": {
    "adjustments": {
        "saturation": 15
    }
}
```

![](https://1549088094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrPciCr3QshdCGkhkBgKD%2Fuploads%2FFjCUFUK7eo8hhi1hDjBZ%2FColor%20Adjustments%20-%20Manual%20-%20Saturation.png?alt=media\&token=c3ea424d-4302-4681-aecd-68ce2f45505a)
{% endtab %}

{% tab title="Contrast" %}

```json
"operations": {
    "adjustments": {
        "contrast": 10
    }
}
```

![](https://1549088094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrPciCr3QshdCGkhkBgKD%2Fuploads%2FeBWumlmMDtahnn0U78MW%2FColor%20Adjustments%20-%20Manual%20-%20Contrast.png?alt=media\&token=4c485e47-9d72-4de0-a5d3-a30ac1f92335)
{% endtab %}

{% tab title="Sharpness" %}

```json
"operations": {
    "adjustments": {
        "sharpness": 15
    }
}
```

![](https://1549088094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrPciCr3QshdCGkhkBgKD%2Fuploads%2FDBCaIvD795ad2DropfVD%2FColor%20Adjustments%20-%20Manual%20-%20Sharpness.png?alt=media\&token=eaa8a98c-2e24-4fcc-a9a6-0d9f99a1a7ed)
{% endtab %}
{% endtabs %}
