Skip to main content

@rtorcato/supabase-common / TransformOptions

Interface: TransformOptions

Defined in: storage.ts:87

Image transformation options for Supabase's render endpoint.

Properties​

width?​

optional width?: number

Defined in: storage.ts:88


height?​

optional height?: number

Defined in: storage.ts:89


resize?​

optional resize?: "cover" | "contain" | "fill"

Defined in: storage.ts:91

How the image fits the target box. Supabase default is cover.


quality?​

optional quality?: number

Defined in: storage.ts:93

20–100. Lower = smaller file.


format?​

optional format?: "origin"

Defined in: storage.ts:95

origin keeps the source format instead of auto-negotiating (e.g. webp).