Variable: crop
ts
const crop: ((width, height, align?) => CdnOperation) & NamedOperationCreator;Defined in: ops/geometric.ts:110
Crops to the given size at an offset (CDN default 0,0). Dimensions accept percent values ('50p'); pixel offsets may be negative.
See
https://uploadcare.com/docs/transformations/image/resize-crop/#operation-crop
Example
ts
crop(640, 480, 'center') // → -/crop/640x480/center/