Skip to main content

@rtorcato/supabase-common / TransformOptions

Interface: TransformOptions

Defined in: storage.ts:50

Image transformation options for Supabase's render endpoint.

Properties

width?

optional width?: number

Defined in: storage.ts:51


height?

optional height?: number

Defined in: storage.ts:52


resize?

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

Defined in: storage.ts:54

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


quality?

optional quality?: number

Defined in: storage.ts:56

20–100. Lower = smaller file.


format?

optional format?: "origin"

Defined in: storage.ts:58

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