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