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.
Properties
Section titled “Properties”
optionalfit?:"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
Section titled “format”format:
ImageFormat
Defined in: packages/schema/src/files/file-options.ts:45
The format it is written in.
height?
Section titled “height?”
optionalheight?:number
Defined in: packages/schema/src/files/file-options.ts:41
The largest height in pixels; any height when omitted.
quality?
Section titled “quality?”
optionalquality?:number
Defined in: packages/schema/src/files/file-options.ts:47
1 to 100; the format’s default when omitted.
width?
Section titled “width?”
optionalwidth?:number
Defined in: packages/schema/src/files/file-options.ts:39
The largest width in pixels; any width when omitted.