Apply Filter
photopea_apply_filterApply Gaussian blur, sharpen, unsharp mask, noise, or motion blur to the active layer in Photopea. Directly modify pixel data with custom parameters for precise image effects.
Instructions
Apply a destructive filter effect 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 | Filter type to apply to the active layer | |
| settings | No | Key-value settings for the filter. For gaussian_blur: { radius: pixels }. For unsharp_mask: { amount: 1-500, radius: 0.1-250, threshold: 0-255 }. For motion_blur: { angle: degrees, distance: pixels }. For noise: { amount: 1-100 } |