Skip to content

ImageVariant

ImageVariant = object

Defined in: packages/schema/src/files/file-options.ts:37

A resized copy of an uploaded image: at most width by height pixels, never enlarged. inside (the default) keeps the whole image within that box, cover fills the box and crops what is outside it. quality is 1 to 100, the format’s default when omitted.

optional fit?: "inside" | "cover"

Defined in: packages/schema/src/files/file-options.ts:43

inside keeps the whole image within the box; cover fills the box and crops the rest, and needs both sides.


format: ImageFormat

Defined in: packages/schema/src/files/file-options.ts:45

The format it is written in.


optional height?: number

Defined in: packages/schema/src/files/file-options.ts:41

The largest height in pixels; any height when omitted.


optional quality?: number

Defined in: packages/schema/src/files/file-options.ts:47

1 to 100; the format’s default when omitted.


optional width?: number

Defined in: packages/schema/src/files/file-options.ts:39

The largest width in pixels; any width when omitted.