auto_levels
Automatically stretches an image's tonal range to improve contrast, optionally targeting a specific layer by name or image index.
Instructions
Automatically stretch the tonal range of an image (auto levels / auto stretch contrast).
Parameters:
image_index: Index of the target image (default 0)
layer_name: Name of the layer to adjust; defaults to active layer
Returns status dict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_name | No | ||
| image_index | No |