Image Filters
Overview
Use updateImageFilter to apply per-image filters. Hue and invert are supported alongside brightness, contrast, saturation, blur, sepia, and grayscale.
API
editor.updateImageFilter(imageId, 'hue', 15)
editor.updateImageFilter(imageId, 'invert', 1)
Notes
- Use
value = 0to remove a filter. - Hue uses the HSV filter pipeline, so hue and saturation can be combined.
Example
editor.updateImageFilter(imageId, 'brightness', 0.2)
editor.updateImageFilter(imageId, 'hue', 30)
editor.updateImageFilter(imageId, 'invert', 1)