Actions19
Draw
AI-generatedSummary
Draws a circle, line, or rectangle over the source image using an SVG overlay, then returns the processed image as binary data.
Inputs
- Input Property Name (required) — Binary property containing the source image; defaults to
data. - Primitive — Shape to draw: circle, line, or rectangle; defaults to rectangle.
- Color — Fill or stroke color, with optional alpha; defaults to opaque red. Lines use a fixed 1-pixel stroke.
- Start Position X and Y — Starting coordinates in pixels; default to 50, 50. For circles, this is the center.
- End Position X and Y — Ending coordinates in pixels; default to 250, 250. For circles, these coordinates determine the radius from the start point; for lines they mark the endpoint; for rectangles they define the opposite corner.
- Corner Radius — Rectangle corner radius in pixels; defaults to 0 and is used only for rectangles.
- Options — Can set the output binary property name, output filename, output format, quality, and opaque background color. By default the processed image is written to the input binary property. The format defaults to the input image's format; JPEG output is flattened against the configured background color.
Output shape
One output item per input item, containing the processed image in binary data.
The item's JSON data and existing binary properties are preserved. The output binary property name can be changed in Options. This operation requires a source image in the selected input binary property.