Actions19
Pad
AI-generatedSummary
Adds padding to an input image by extending its canvas on the top, right, bottom, and left. The added area uses the selected background color, which defaults to transparent.
Inputs
- Input Property Name (required) — Binary property containing the source image; defaults to
data. - Background Color — Color for the padded area, including optional alpha; defaults to transparent white (
#ffffff00). - Pad Top — Padding in pixels added above the image; defaults to 20. Negative values are treated as zero.
- Pad Right — Padding in pixels added to the right; defaults to 20. Negative values are treated as zero.
- Pad Bottom — Padding in pixels added below the image; defaults to 20. Negative values are treated as zero.
- Pad Left — Padding in pixels added to the left; defaults to 20. Negative values are treated as zero.
- Output Binary Property Name — Optional binary property for the processed image. If set, writes there instead of the input property; it cannot be empty.
- File Name — Optional output file name; the extension is set to match the resulting format.
- Output Format Override — Choose a final format (AVIF, GIF, JPEG, PNG, TIFF, or WebP), or inherit the input format. Defaults to inherit.
- Quality — Output quality for formats that support it; defaults to 100.
- Opaque Background Color — Color used to flatten transparency when exporting to formats without alpha support, such as JPEG; defaults to white.
Output shape
One output item per input item, with the processed image in binary data.
The input JSON and other binary properties are retained, and the output binary is written to the input property unless another output property is specified. If the first operation is Pad, an input image is required. With Continue On Fail enabled, a failed item returns JSON containing an
errormessage and no processed image.