Variable: trim
ts
const trim: ((tolerance?, padding?) => CdnOperation) & NamedOperationCreator;Defined in: ops/geometric.ts:280
Crops away a solid background or fully transparent edges. tolerance (0..99) widens the colors treated as background; padding keeps a margin, as a percentage of the result ('10p', 0–100%). The CDN documents no default tolerance, so a padding needs one before it.
See
https://uploadcare.com/docs/transformations/image/resize-crop/#operation-trim
Example
ts
trim() // → -/trim/
trim(30, '10p') // → -/trim/30/10p/