Table of Contents

Class IconOptions

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

Limits applied when accepting an icon (upload or downloaded URL). Configured on the platform options and enforced by IconValidation.

public class IconOptions
Inheritance
IconOptions
Inherited Members

Properties

AllowedContentTypes

Accepted image content types. Default: png, jpeg, gif, webp, svg.

public IReadOnlyCollection<string> AllowedContentTypes { get; set; }

Property Value

IReadOnlyCollection<string>

MaxBytes

Maximum stored icon size in bytes — validated after any processing (downscaling). Default 256 KB.

public int MaxBytes { get; set; }

Property Value

int

MaxDimension

Maximum icon dimension (width and height, px). When an image processor is registered, larger images are downscaled to fit within this box before storing (aspect preserved, never upscaled). Default 256. 0 disables resizing.

public int MaxDimension { get; set; }

Property Value

int

MaxUploadBytes

Maximum size (bytes) of an original upload accepted for reading, before processing. Larger than MaxBytes so oversized images can be read and then downscaled (when an image processor is registered) rather than rejected outright. Default 10 MB.

public int MaxUploadBytes { get; set; }

Property Value

int