Skip to main content

PadInput

Add pixels to the edge of an image.

Notes

  • By default padding applies a background color of white. See bg-color to change that.
  • If the source image contains a transparent background and the output image also contains transparency, the padding will be made up of transparent pixels.
  • When using pad and canvas at the same time, pad will be ignored.
  • Values can be specified using CSS style shorthand values. (see CSS Margin or CSS Padding for more examples).
  • CSS shorthand allows for all edges to be specified in one property.
  • Any fractional pixel measurements will be rounded to the nearest whole pixel.
input PadInput {
top: Int
right: Int
bottom: Int
left: Int
}

Fields

PadInput.top ● Int scalar

Top - Pixels or Percentage - Default=0

PadInput.right ● Int scalar

Right - Pixels or Percentage - Default=0

PadInput.bottom ● Int scalar

Bottom - Pixels or Percentage - Default=0

PadInput.left ● Int scalar

Left - Pixels or Percentage - Default=0

Member Of

TransformationInput input