ImageUploadOptions
Namespace: MJCZone.MediaMatic.Models
Assembly: MJCZone.MediaMatic
Summary
Options for uploading and processing images.
public
Contents
Constructors (1) | Methods (4) | Properties (14)
Constructors
ImageUploadOptions
ImageUploadOptions()Methods
GetType
GetType()ToString
ToString()Equals
Equals()GetHashCode
GetHashCode()Properties
Path
Gets or sets the target path for the uploaded image.
Type: string?
GenerateFormats
Gets or sets a value indicating whether to generate additional format variants (WebP, AVIF). Default is true.
Type: bool?
Formats
Gets or sets the specific formats to generate (if null, generates WebP and AVIF if supported).
Type: List<ImageFormat?>?
GenerateThumbnails
Gets or sets a value indicating whether to generate responsive image thumbnails. Default is true.
Type: bool?
ThumbnailSizes
Gets or sets the thumbnail sizes to generate (width in pixels). Default is [320, 640, 1024, 1920].
Type: List<int?>?
MaxWidth
Gets or sets the maximum width for the original image (will resize if larger). Null means no maximum.
Type: int?
MaxHeight
Gets or sets the maximum height for the original image (will resize if larger). Null means no maximum.
Type: int?
JpegQuality
Gets or sets the JPEG quality (1-100). Default is 85.
Type: int?
WebPQuality
Gets or sets the WebP quality (1-100). Default is 80.
Type: int?
AvifQuality
Gets or sets the AVIF quality (1-100). Default is 75.
Type: int?
PreserveExif
Gets or sets a value indicating whether to preserve EXIF metadata. Default is true.
Type: bool?
AutoOrient
Gets or sets a value indicating whether to auto-orient images based on EXIF orientation. Default is true.
Type: bool?
StripMetadata
Gets or sets a value indicating whether to strip all metadata (overrides PreserveExif). Default is false.
Type: bool?
Overwrite
Gets or sets a value indicating whether to overwrite existing files. Default is false.
Type: bool?