Variable: preview
ts
const preview: ((width?, height?) => CdnOperation) & NamedOperationCreator;Defined in: ops/geometric.ts:32
Downscales an image proportionally to fit the given dimensions (2048x2048 when omitted). With no arguments it acts as the minimal "process this image" core operation.
See
https://uploadcare.com/docs/transformations/image/resize-crop/#operation-preview
Example
ts
preview() // → -/preview/
preview(1000, 400) // → -/preview/1000x400/