Transformation filter reference
The ECS architecture supports a comprehensive set of image transformation filters using a simplified syntax. The following table provides the complete filter reference:
| Filter Name | Filter Syntax | Notes |
|---|---|---|
|
Blur |
|
Integer from 0.3 to 1000 |
|
Convolve |
|
Requires 3 parameters: width, height, kernel |
|
Extract |
|
Array of 4 non-negative integers |
|
Flatten |
|
Accepts color names or RGBA tuples |
|
Flip |
|
Boolean |
|
Flop |
|
Boolean |
|
Format |
|
Accepts: jpg, jpeg, png, tiff, webp, gif, avif |
|
Greyscale |
|
Boolean |
|
Normalize |
|
Boolean |
|
Quality |
|
Integer from 0 to 1 |
|
Resize |
|
Must specify: height, width, or ratio |
|
Rotate |
|
Integer |
|
Sharpen |
|
Accepts either boolean to perform a fast mild sharpen, or additional parameters for a slower but more accurate sharpen. See Sharp docs |
|
Smart Crop |
|
Accepts either boolean or index + padding parameters. Boolean will automatically perform cropping. |
|
Strip ICC |
|
Strip ICC and enforces sRGB color space |
|
Strip EXIF |
|
Removes image metadata |
|
Tint |
|
Accepts color names or RGBA tuples |
|
Watermark |
|
Expects a format of: [watermarkURL, [x, y, alpha, widthRatio, heightRatio]] Note: For security reasons, the origin the watermark image is hosted at must be configured as an origin within DIT. |