Skip to main content

TrimInput

Remove pixels from the edge of an image.

The trim parameter removes pixels from the edge of an image by pixel or percentage value. This can be useful for removing whitespace and borders that appear on a source image.

Notes

  1. Values can be specified using CSS style shorthand values. (See CSS Margin or CSS Padding for more examples).
  2. CSS shorthand allows for all edges to be specified in one property.
  3. Any fractional pixel measurements will be rounded to the nearest whole pixel.
input TrimInput {
top: Int
right: Int
bottom: Int
left: Int
}

Fields

TrimInput.top ● Int scalar

Top - Pixels or Percentage(decimal 0.0 - 1) - Default=0

TrimInput.right ● Int scalar

Right - Pixels or Percentage(decimal 0.0 - 1) - Default=0

TrimInput.bottom ● Int scalar

Bottom - Pixels or Percentage(decimal 0.0 - 1) - Default=0

TrimInput.left ● Int scalar

Left - Pixels or Percentage(decimal 0.0 - 1) - Default=0

Member Of

TransformationInput input