AWS SDK for .NET Documentation
Thumbnails Class
AmazonAmazon.ElasticTranscoder.ModelThumbnails Did this page help you?   Yes   No    Tell us about it...
Thumbnails for videos.
Declaration Syntax
C#
public class Thumbnails
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
Thumbnails()()()()
Initializes a new instance of the Thumbnails class

AspectRatio
Gets and sets the property AspectRatio.

To better control resolution and aspect ratio of thumbnails, we recommend that you use the values

CopyC#
MaxWidth
,
CopyC#
MaxHeight
,
CopyC#
SizingPolicy
, and
CopyC#
PaddingPolicy
instead of
CopyC#
Resolution
and
CopyC#
AspectRatio
. The two groups of settings are mutually exclusive. Do not use them together.

The aspect ratio of thumbnails. Valid values include:

CopyC#
auto
,
CopyC#
1:1
,
CopyC#
4:3
,
CopyC#
3:2
,
CopyC#
16:9

If you specify

CopyC#
auto
, Elastic Transcoder tries to preserve the aspect ratio of the video in the output file.


Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Format
Gets and sets the property Format.

The format of thumbnails, if any. Valid values are

CopyC#
jpg
and
CopyC#
png
.

You specify whether you want Elastic Transcoder to create thumbnails when you create a job.


GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
Interval
Gets and sets the property Interval.

The number of seconds between thumbnails. Specify an integer value.


MaxHeight
Gets and sets the property MaxHeight.

The maximum height of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072.


MaxWidth
Gets and sets the property MaxWidth.

The maximum width of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096.


PaddingPolicy
Gets and sets the property PaddingPolicy.

When you set

CopyC#
PaddingPolicy
to
CopyC#
Pad
, Elastic Transcoder may add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail
CopyC#
MaxWidth
and
CopyC#
MaxHeight
settings.


Resolution
Gets and sets the property Resolution.

To better control resolution and aspect ratio of thumbnails, we recommend that you use the values

CopyC#
MaxWidth
,
CopyC#
MaxHeight
,
CopyC#
SizingPolicy
, and
CopyC#
PaddingPolicy
instead of
CopyC#
Resolution
and
CopyC#
AspectRatio
. The two groups of settings are mutually exclusive. Do not use them together.

The width and height of thumbnail files in pixels. Specify a value in the format

CopyC#
<i>width</i>
x
CopyC#
<i>height</i>
where both values are even integers. The values cannot exceed the width and height that you specified in the
CopyC#
Video:Resolution
object.


SizingPolicy
Gets and sets the property SizingPolicy.

Specify one of the following values to control scaling of thumbnails:

  • CopyC#
    Fit
    : Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings without exceeding the other value.
  • CopyC#
    Fill
    : Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail
    CopyC#
    MaxWidth
    or
    CopyC#
    MaxHeight
    settings and matches or exceeds the other value. Elastic Transcoder centers the image in thumbnails and then crops in the dimension (if any) that exceeds the maximum value.
  • CopyC#
    Stretch
    : Elastic Transcoder stretches thumbnails to match the values that you specified for thumbnail
    CopyC#
    MaxWidth
    and
    CopyC#
    MaxHeight
    settings. If the relative proportions of the input video and thumbnails are different, the thumbnails will be distorted.
  • CopyC#
    Keep
    : Elastic Transcoder does not scale thumbnails. If either dimension of the input video exceeds the values that you specified for thumbnail
    CopyC#
    MaxWidth
    and
    CopyC#
    MaxHeight
    settings, Elastic Transcoder crops the thumbnails.
  • CopyC#
    ShrinkToFit
    : Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of thumbnail
    CopyC#
    MaxWidth
    and
    CopyC#
    MaxHeight
    without exceeding either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.
  • CopyC#
    ShrinkToFill
    : Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of
    CopyC#
    MaxWidth
    and
    CopyC#
    MaxHeight
    without dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.


ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithAspectRatio(String) Obsolete.
Sets the AspectRatio property

WithFormat(String) Obsolete.
Sets the Format property

WithInterval(String) Obsolete.
Sets the Interval property

WithMaxHeight(String) Obsolete.
Sets the MaxHeight property

WithMaxWidth(String) Obsolete.
Sets the MaxWidth property

WithPaddingPolicy(String) Obsolete.
Sets the PaddingPolicy property

WithResolution(String) Obsolete.
Sets the Resolution property

WithSizingPolicy(String) Obsolete.
Sets the SizingPolicy property

Inheritance Hierarchy
Object
Thumbnails

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)