Table of Contents

Class TransformOptions

Namespace
Supabase.Storage
Assembly
Supabase.Storage.dll
public class TransformOptions
Inheritance
TransformOptions
Inherited Members
Extension Methods

Properties

Format

Specify the format of the image requested.

When using 'origin' we force the format to be the same as the original image, bypassing automatic browser optimisation such as webp conversion

[JsonProperty("format")]
public string Format { get; set; }

Property Value

string

Height

The height of the image in pixels.

[JsonProperty("height")]
public int? Height { get; set; }

Property Value

int?

Quality

Set the quality of the returned image, this is percentage based, default 80

[JsonProperty("quality")]
public int Quality { get; set; }

Property Value

int

Resize

The resize mode can be cover, contain or fill. Defaults to cover.

  • Cover resizes the image to maintain it's aspect ratio while filling the entire width and height.
  • Contain resizes the image to maintain it's aspect ratio while fitting the entire image within the width and height.
  • Fill resizes the image to fill the entire width and height.If the object's aspect ratio does not match the width and height, the image will be stretched to fit.
[JsonProperty("resize")]
public TransformOptions.ResizeType Resize { get; set; }

Property Value

TransformOptions.ResizeType

Width

The width of the image in pixels.

[JsonProperty("width")]
public int? Width { get; set; }

Property Value

int?