ThumbnailGeneratorPreset – Media API – MediaKind
ThumbnailGeneratorPreset
Properties
baseFilename
Type: string (Optional)
Length: <= 64 characters
Pattern: ^[A-Za-z0-9_-]+$
Description: Used to create the output filename as {BaseFilename}_{Label}{Index}{Extension}. The default is the name of the input file. If the name of the input file is too long, then it will be truncated to 64 characters.
thumbnails
Type: list of objects (ThumbnailGeneratorConfiguration)
Required: 1+ items
Description: The set of thumbnails to be produced.
format
Type: enum (Required)
Allowed values: Jpeg, Png
Description: The output format for the thumbnails.
height
Type: string (Optional)
Description: Either an integer size in pixels or a percentage of the input resolution. If either width/height is defined as a percentage, the other dimension must be the same percentage.
label
Type: string (Optional)
Length: <= 64 characters
Pattern: ^[A-Za-z0-9_-]+$
Description: Used to create the output filename as {BaseFilename}_{Label}{Index}{Extension}. When generating sprites, the output vtt file will be named {BaseFilename}_{Label}.vtt.
quality
Type: integer (Optional)
Range: 0 to 100
Default: 70
Description: The compression quality for JPEG images, between 0-100, default: 70.
range
Type: string (Optional)
Default: 1
Description: Either an ISO8601 duration, a percentage of the asset duration, or the value '1'. The default is '1', a single thumbnail is produced.
spriteColumn
Type: integer (Optional)
Range: 1 to 10
Description: The number of columns used if you want a thumbnail sprite image. Default: Single image output files.
start
Type: string (Optional)
Default: PT10S
Description: Either an ISO8601 duration or a percentage of the asset duration. Default: PT10S.
step
Type: string (Optional)
Description: The intervals at which thumbnails are generated. Either an ISO8601 duration or a percentage of the asset duration.
width
Type: string (Optional)
Description: Either an integer size in pixels or a percentage of the input resolution. If only one of width/height is present, the aspect ratio from the source is preserved.