Skip to content

ThumbnailOptions

Namespace: MJCZone.MediaMatic.Models

Assembly: MJCZone.MediaMatic

Summary

Options for generating thumbnails from a video.

public

Contents

Constructors (1) | Methods (4) | Properties (11)

Constructors

ThumbnailOptions

csharp
ThumbnailOptions()

Methods

GetType

csharp
GetType()

ToString

csharp
ToString()

Equals

csharp
Equals()

GetHashCode

csharp
GetHashCode()

Properties

Count

Gets or sets the number of thumbnails to generate. Default is 3.

Type: int?

Timestamps

Gets or sets specific timestamps (in seconds) for thumbnail generation. Null means evenly spaced throughout video.

Type: List<double?>?

Width

Gets or sets the thumbnail width in pixels. Default is 320. Height will maintain aspect ratio.

Type: int?

Height

Gets or sets the thumbnail height in pixels. Null means maintain aspect ratio based on width (only applies to Fit mode).

Type: int?

ResizeMode

Gets or sets the resize mode for fitting content to target dimensions. Default is Fit (maintain aspect ratio, scale to fit within bounds).

Type: ResizeMode?

BackgroundColor

Gets or sets the background color for Pad mode (hex format, e.g., "#000000"). Default is black.

Type: string

FocalPoint

Gets or sets the focal point for smart cropping in Cover mode (x, y as percentage 0-1). Null means center crop.

Type: FocalPoint?

Format

Gets or sets the output format for thumbnails. Default is JPEG.

Type: ImageFormat?

Quality

Gets or sets the quality (1-100) for lossy formats. Default is 85.

Type: int?

OutputPath

Gets or sets the output directory for thumbnails. Null means same directory as video.

Type: string?

FilePattern

Gets or sets the filename pattern for thumbnails. Use {0} for thumbnail index, {1} for timestamp. Default is "thumb_{0}.jpg".

Type: string