You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Renamed `WatermarkText` to `Text` and added new parameters
`FontName`, `FontSize`, `FontColor`, `Top`, and `Left` in
the image processing plugin. Updated the `InputParameter`
class to reflect these changes. Adjusted the
`WatermarkOperationHandler` to validate and handle the
new parameters. Modified unit tests to ensure consistency
with the updated implementation.
#4
Copy file name to clipboardExpand all lines: README.md
+20-5Lines changed: 20 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Image Processing Plugin
1
+
##Image Processing Plugin
2
2
3
3
The **Image Processing Plugin** is a built-in, plug-and-play integration for the FlowSynx automation engine. It enables performing common image processing operations (resize, rotate, grayscale, crop, etc.) within workflows, with no custom coding required.
4
4
@@ -46,11 +46,16 @@ The plugin accepts the following parameters:
46
46
- Operation-specific parameters (optional):
47
47
-`Width` (int): For `resize`/`crop` operations.
48
48
-`Height` (int): For `resize`/`crop` operations.
49
+
-`Top` (int): For `crop`/`watermark` operations. Default: 10.
50
+
-`Left` (int): For `crop`/`watermark` operations. Default: 10.
49
51
-`Angle` (float): For `rotate` operation.
50
52
-`Radius` (float): For `blur`/`sharpen` operations.
51
53
-`Amount` (float): For `brightness`/`contrast` operations.
52
54
-`FlipMode` (string): For `flip` operation (`horizontal` or `vertical`).
53
-
-`WatermarkText` (string): For `watermark` operation (text to overlay).
55
+
-`Text` (string): For `watermark` operation (text to overlay).
56
+
-`FontName` (string): For `watermark` operation (font name for watermark text).
57
+
-`FontSize` (int): For `watermark` operation (font size for watermark text). Default: 24.
58
+
-`FontColor` (string): For `watermark` operation (color for watermark text, e.g., "#FFFFFF").
54
59
-`FromColor` (string): For `colorreplace` operation (color to replace, as a string, e.g., "#FF0000FF" or "rgba(255,0,0,255)").
55
60
-`ToColor` (string): For `colorreplace` operation (replacement color, same format as above).
56
61
@@ -71,7 +76,12 @@ The plugin accepts the following parameters:
71
76
{
72
77
"Operation": "watermark",
73
78
"Data": "<base64-image>",
74
-
"WatermarkText": "Sample watermark"
79
+
"Text": "Sample watermark",
80
+
"FontName": "Arial",
81
+
"FontSize": 32,
82
+
"FontColor": "#FF0000",
83
+
"Top": 20,
84
+
"Left": 20
75
85
}
76
86
```
77
87
@@ -132,7 +142,12 @@ The plugin accepts the following parameters:
132
142
{
133
143
"Operation": "watermark",
134
144
"Data": "<base64-image>",
135
-
"WatermarkText": "Confidential"
145
+
"Text": "Confidential",
146
+
"FontName": "Arial",
147
+
"FontSize": 24,
148
+
"FontColor": "#FFFFFF",
149
+
"Top": 10,
150
+
"Left": 10
136
151
}
137
152
```
138
153
@@ -163,7 +178,7 @@ The plugin accepts the following parameters:
163
178
- Provide all required parameters for the selected operation.
164
179
- For operations like `resize` or `crop`, both `Width` and `Height` are required.
165
180
- For `flip`, set `FlipMode` to `horizontal` or `vertical`.
166
-
- For `watermark`, provide `WatermarkText`.
181
+
- For `watermark`, provide `Text`, and optionally `FontName`, `FontSize`, `FontColor`, `Top`, and `Left`.
167
182
- For `colorreplace`, provide both `FromColor` and `ToColor` as strings (e.g., "rgba(255,0,0,255)" or "#FF0000FF").
168
183
- If an unsupported operation is specified, an error will be returned.
0 commit comments