Variable: cropByRatio
ts
const cropByRatio: ((ratio, align?) => CdnOperation) & NamedOperationCreator;Defined in: ops/geometric.ts:135
Crops to an aspect ratio, e.g. '16:9' (CDN default alignment center).
See
https://uploadcare.com/docs/transformations/image/resize-crop/#operation-crop-by-ratio
Example
ts
cropByRatio('16:9') // → -/crop/16:9/