Skip to content

Variable: resize ​

ts
const resize: ((dims) => CdnOperation) & NamedOperationCreator;

Defined in: ops/geometric.ts:53

Resizes to exact dimensions; one side may be omitted to preserve the aspect ratio. Providing both sides may distort the image.

See ​

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

Example ​

ts
resize({ width: 320 }) // → -/resize/320x/