@rtorcato/supabase-common / TransformOptions
Interface: TransformOptions
Defined in: storage.ts:50
Image transformation options for Supabase's render endpoint.
Properties
width?
optionalwidth?:number
Defined in: storage.ts:51
height?
optionalheight?:number
Defined in: storage.ts:52
resize?
optionalresize?:"cover"|"contain"|"fill"
Defined in: storage.ts:54
How the image fits the target box. Supabase default is cover.
quality?
optionalquality?:number
Defined in: storage.ts:56
20–100. Lower = smaller file.
format?
optionalformat?:"origin"
Defined in: storage.ts:58
origin keeps the source format instead of auto-negotiating (e.g. webp).