Skip to content

Variable: smartResize ​

ts
const smartResize: ((width, height) => CdnOperation) & NamedOperationCreator;

Defined in: ops/geometric.ts:70

Content-aware resize that generates missing parts. Both dimensions required.

See ​

https://uploadcare.com/docs/transformations/image/resize-crop/#operation-smart-resize

Example ​

ts
smartResize(440, 600) // → -/smart_resize/440x600/