# Adjust brightness, contrast and colour

Adjust the brightness, contrast, saturation, sharpness and gamma of an image. 1 leaves a setting unchanged.

- Endpoint: `POST https://setget.net/v1/tools/image-adjust` with JSON `{"input": {...}}` (add `"wait": 30` to hold the reply until the job finishes)
- MCP: `run_tool` with `slug` = `image-adjust`
- Page: https://setget.net/tools/image-adjust

## Files in, files out

This is a file tool. Its file inputs take file references, not file contents and not web addresses.

- Get a reference by uploading: `curl -T FILE https://setget.net/drop/` prints a line `ref  <id>/f1`. Or `POST https://setget.net/v1/drops` with `{"files":[{"name","size"}]}`, PUT the bytes to the returned `upload.url` with the listed headers, and use the file's `ref`. Over MCP use the `drop` tool. A file under about 700 KB can also be sent in place as a `data:<type>;base64,<content>` URI.
- Uploads are at most 100 MB per file, are readable by anyone with the link, and expire (one hour by default). Programs are refused.
- The tool runs as a job. The reply is `{"tool", "ms", "result", "files", "job"}`: `result` is JSON, and every result file comes back in `files` as `{"name", "size", "content_type", "kind", "url", "ref"}`. Download it from `url`, or pass `ref` as the input of another file tool.
- A job still running when the wait ends answers 202 with `job`. Follow it with `GET https://setget.net/v1/jobs/<id>?wait=30`, or stream progress from `GET https://setget.net/v1/jobs/<id>/events` (over MCP: the `job` tool). A person can watch it at `job.url`.

## Inputs

- `image` (required, file, a file reference such as `DROP_ID/f1`, accepts image): The image to adjust.
- `brightness` (optional, number, default `1.0`, range 0..4): Below 1 is darker, above 1 is brighter. 0 is black.
- `contrast` (optional, number, default `1.0`, range 0..4): Below 1 is flatter, above 1 is punchier. 0 is solid grey.
- `saturation` (optional, number, default `1.0`, range 0..4): Below 1 is more muted, above 1 is more vivid. 0 is black and white.
- `sharpness` (optional, number, default `1.0`, range 0..4): Below 1 is softer, above 1 is sharper. 0 is blurred.
- `gamma` (optional, number, default `1.0`, range 0.1..5): Lightens (above 1) or darkens (below 1) the middle tones without clipping black or white.

## Example 1: A little brighter and punchier

Upload first. Each placeholder below stands for the reference of one upload: `DROP_ID/f1` = [sample.jpg](https://setget.net/static/samples/sample.jpg).

```json
{"input":{"image":"DROP_ID/f1","brightness":1.2,"contrast":1.1},"wait":30}
```

## Example 2: Muted and sharper

Upload first. Each placeholder below stands for the reference of one upload: `DROP_ID/f1` = [sample.jpg](https://setget.net/static/samples/sample.jpg).

```json
{"input":{"image":"DROP_ID/f1","saturation":0.5,"sharpness":1.5},"wait":30}
```

## Example 3: Lift the shadows

Upload first. Each placeholder below stands for the reference of one upload: `DROP_ID/f1` = [sample.png](https://setget.net/static/samples/sample.png).

```json
{"input":{"image":"DROP_ID/f1","gamma":1.8},"wait":30}
```

**What do the numbers mean?** 1 means no change. 1.2 is 20% more and 0.8 is 20% less. Small steps go a long way: most photos need values between 0.8 and 1.3.

**Should I use brightness or gamma for a dark photo?** Gamma. Brightness lifts everything and can wash out bright areas; gamma lifts the shadows and middle tones while keeping white as white.

**In what order are they applied?** Gamma, brightness, contrast, saturation, then sharpness.
