Operations - Image Adjustments

Image Operations / Manual Adjustments

The Optidash Image API enables you to fine-tune many visual aspects of your images. If you like to adjust saturation, brightness, or shadow details, you'll feel right at home. As with all API requests, you can combine multiple operations together to create truly unique visuals.

All manual adjustments must be passed in an adjust hash:

{
    "adjust": {
        "contrast": 20
    }
}

An example cURL request to adjust the contrast value will look like the following:

curl https://api.optidash.ai/1.0/fetch
     --user your-api-key: \
     --header "Content-Type: application/json" \
     --data '{
         "url": "https://www.website.com/image.jpg",
         "adjust": {
             "contrast": 20
         }
     }'

Brightness

The brightness parameter takes an integer value within the range -100 - 100:

{
    "adjust": {
        "brightness": 10
    }
}

Saturation

The saturation parameter takes an integer value within the range -100 - 100:

{
    "adjust": {
        "saturation": 10
    }
}

Contrast

The contrast parameter takes an integer value within the range -100 - 100:

{
    "adjust": {
        "contrast": 10
    }
}

Hue

The hue parameter takes an integer value within the range -180 - 180:

{
    "adjust": {
        "hue": 10
    }
}

Sharpen

The sharpen parameter takes an integer value within the range -100 - 100:

{
    "adjust": {
        "sharpen": 10
    }
}

Invert

The invert parameter takes a boolean value:

{
    "adjust": {
        "invert": true
    }
}