Apply Adjustment
photopea_apply_adjustmentApply destructive brightness, hue/saturation, levels, or curves adjustments directly to the active layer's pixels; select a target layer first and undo to revert changes.
Instructions
Apply a destructive image adjustment to the active layer's pixel data. Use select_layer to target a specific layer first. Modifies pixels directly — use undo to revert if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Adjustment type: 'brightness' for brightness/contrast, 'hue_sat' for hue/saturation/lightness, 'levels' for input levels, 'curves' for tone curves | |
| settings | No | Key-value settings for the adjustment. For brightness: { brightness: -100..100, contrast: -100..100 }. For hue_sat: { hue: -180..180, saturation: -100..100, lightness: -100..100 }. For levels: { inputMin: 0..255, inputMax: 0..255, gamma: 0.1..9.99 } |