🔄

Brightness Adjustment

Adjust the brightness of an image

GET 10 credits /v1/image/adjust/brightness
curl "https://image.toolkitapi.io/v1/image/adjust/brightness?url=https://toolkitapi.io/static/samples/sample-image.png&factor=1.4&format=jpeg"
import httpx

resp = httpx.get(
    "https://image.toolkitapi.io/v1/image/adjust/brightness?url=https://toolkitapi.io/static/samples/sample-image.png&factor=1.4&format=jpeg",
)
print(resp.json())
const resp = await fetch("https://image.toolkitapi.io/v1/image/adjust/brightness?url=https://toolkitapi.io/static/samples/sample-image.png&factor=1.4&format=jpeg", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
{
  "image": "/9j/4AAQSkZJRgABAQ...(base64 data)...",
  "format": "jpeg",
  "factor": 1.4
}

Try It Live

Live Demo

Description

Adjust the brightness of an image

How to Use

1

1. Provide the source image via the `url` query parameter.

2

2. Set the `factor` parameter to control the adjustment intensity (1.0 = no change).

3

3. Choose your preferred output `format` (png, jpeg, or webp) and `quality` level.

About This Tool

Use the Brightness Adjustment endpoint to lighten or darken an image. The enhancement factor controls the intensity: 1.0 leaves the image unchanged, values below 1.0 darken it, and values above 1.0 brighten it (up to 5.0).

This is useful for correcting underexposed or overexposed photos, preparing images for different display contexts, and creating visual effects. The adjustment uses PIL's ImageEnhance for smooth, linear brightness scaling.

Why Use This Tool

Frequently Asked Questions

What does a factor of 0.0 produce?
A factor of 0.0 produces a completely black image. A factor of 2.0 doubles the brightness.
How is this different from contrast adjustment?
Brightness uniformly scales all pixel values, making the entire image lighter or darker. Contrast changes the difference between light and dark areas.
Can I fix an underexposed photo?
Yes, try factors between 1.2 and 1.8 for underexposed images. Combine with contrast adjustment for best results.

Start using Brightness Adjustment now

Get your free API key and make your first request in under a minute.