Interface: TrimInput
Defined in: type/TrimInput.ts:9
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
- 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.
Properties
bottom?
optionalbottom?:number
Defined in: type/TrimInput.ts:15
Bottom - Pixels or Percentage(decimal 0.0 - 1) - Default=0
left?
optionalleft?:number
Defined in: type/TrimInput.ts:17
Left - Pixels or Percentage(decimal 0.0 - 1) - Default=0
right?
optionalright?:number
Defined in: type/TrimInput.ts:13
Right - Pixels or Percentage(decimal 0.0 - 1) - Default=0
top?
optionaltop?:number
Defined in: type/TrimInput.ts:11
Top - Pixels or Percentage(decimal 0.0 - 1) - Default=0