Class Thumbnails
- All Implemented Interfaces:
Serializable, Cloneable
Thumbnails for videos.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe format of thumbnails, if any.The approximate number of seconds between thumbnails.The maximum height of thumbnails in pixels.The maximum width of thumbnails in pixels.When you setPaddingPolicytoPad, 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 thumbnailMaxWidthandMaxHeightsettings.Specify one of the following values to control scaling of thumbnails:inthashCode()voidsetAspectRatio(String aspectRatio) voidThe format of thumbnails, if any.voidsetInterval(String interval) The approximate number of seconds between thumbnails.voidsetMaxHeight(String maxHeight) The maximum height of thumbnails in pixels.voidsetMaxWidth(String maxWidth) The maximum width of thumbnails in pixels.voidsetPaddingPolicy(String paddingPolicy) When you setPaddingPolicytoPad, 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 thumbnailMaxWidthandMaxHeightsettings.voidsetResolution(String resolution) voidsetSizingPolicy(String sizingPolicy) Specify one of the following values to control scaling of thumbnails:toString()Returns a string representation of this object; useful for testing and debugging.withAspectRatio(String aspectRatio) withFormat(String format) The format of thumbnails, if any.withInterval(String interval) The approximate number of seconds between thumbnails.withMaxHeight(String maxHeight) The maximum height of thumbnails in pixels.withMaxWidth(String maxWidth) The maximum width of thumbnails in pixels.withPaddingPolicy(String paddingPolicy) When you setPaddingPolicytoPad, 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 thumbnailMaxWidthandMaxHeightsettings.withResolution(String resolution) withSizingPolicy(String sizingPolicy) Specify one of the following values to control scaling of thumbnails:
-
Constructor Details
-
Thumbnails
public Thumbnails()
-
-
Method Details
-
setFormat
The format of thumbnails, if any. Valid values are
jpgandpng.You specify whether you want Elastic Transcoder to create thumbnails when you create a job.
- Parameters:
format- The format of thumbnails, if any. Valid values arejpgandpng.You specify whether you want Elastic Transcoder to create thumbnails when you create a job.
-
getFormat
The format of thumbnails, if any. Valid values are
jpgandpng.You specify whether you want Elastic Transcoder to create thumbnails when you create a job.
- Returns:
- The format of thumbnails, if any. Valid values are
jpgandpng.You specify whether you want Elastic Transcoder to create thumbnails when you create a job.
-
withFormat
The format of thumbnails, if any. Valid values are
jpgandpng.You specify whether you want Elastic Transcoder to create thumbnails when you create a job.
- Parameters:
format- The format of thumbnails, if any. Valid values arejpgandpng.You specify whether you want Elastic Transcoder to create thumbnails when you create a job.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInterval
The approximate number of seconds between thumbnails. Specify an integer value.
- Parameters:
interval- The approximate number of seconds between thumbnails. Specify an integer value.
-
getInterval
The approximate number of seconds between thumbnails. Specify an integer value.
- Returns:
- The approximate number of seconds between thumbnails. Specify an integer value.
-
withInterval
The approximate number of seconds between thumbnails. Specify an integer value.
- Parameters:
interval- The approximate number of seconds between thumbnails. Specify an integer value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResolution
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth,MaxHeight,SizingPolicy, andPaddingPolicyinstead ofResolutionandAspectRatio. 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
widthxheightwhere both values are even integers. The values cannot exceed the width and height that you specified in theVideo:Resolutionobject.- Parameters:
resolution-To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth,MaxHeight,SizingPolicy, andPaddingPolicyinstead ofResolutionandAspectRatio. 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
widthxheightwhere both values are even integers. The values cannot exceed the width and height that you specified in theVideo:Resolutionobject.
-
getResolution
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth,MaxHeight,SizingPolicy, andPaddingPolicyinstead ofResolutionandAspectRatio. 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
widthxheightwhere both values are even integers. The values cannot exceed the width and height that you specified in theVideo:Resolutionobject.- Returns:
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth,MaxHeight,SizingPolicy, andPaddingPolicyinstead ofResolutionandAspectRatio. 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
widthxheightwhere both values are even integers. The values cannot exceed the width and height that you specified in theVideo:Resolutionobject.
-
withResolution
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth,MaxHeight,SizingPolicy, andPaddingPolicyinstead ofResolutionandAspectRatio. 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
widthxheightwhere both values are even integers. The values cannot exceed the width and height that you specified in theVideo:Resolutionobject.- Parameters:
resolution-To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth,MaxHeight,SizingPolicy, andPaddingPolicyinstead ofResolutionandAspectRatio. 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
widthxheightwhere both values are even integers. The values cannot exceed the width and height that you specified in theVideo:Resolutionobject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAspectRatio
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth,MaxHeight,SizingPolicy, andPaddingPolicyinstead ofResolutionandAspectRatio. The two groups of settings are mutually exclusive. Do not use them together.The aspect ratio of thumbnails. Valid values include:
auto,1:1,4:3,3:2,16:9If you specify
auto, Elastic Transcoder tries to preserve the aspect ratio of the video in the output file.- Parameters:
aspectRatio-To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth,MaxHeight,SizingPolicy, andPaddingPolicyinstead ofResolutionandAspectRatio. The two groups of settings are mutually exclusive. Do not use them together.The aspect ratio of thumbnails. Valid values include:
auto,1:1,4:3,3:2,16:9If you specify
auto, Elastic Transcoder tries to preserve the aspect ratio of the video in the output file.
-
getAspectRatio
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth,MaxHeight,SizingPolicy, andPaddingPolicyinstead ofResolutionandAspectRatio. The two groups of settings are mutually exclusive. Do not use them together.The aspect ratio of thumbnails. Valid values include:
auto,1:1,4:3,3:2,16:9If you specify
auto, Elastic Transcoder tries to preserve the aspect ratio of the video in the output file.- Returns:
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth,MaxHeight,SizingPolicy, andPaddingPolicyinstead ofResolutionandAspectRatio. The two groups of settings are mutually exclusive. Do not use them together.The aspect ratio of thumbnails. Valid values include:
auto,1:1,4:3,3:2,16:9If you specify
auto, Elastic Transcoder tries to preserve the aspect ratio of the video in the output file.
-
withAspectRatio
To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth,MaxHeight,SizingPolicy, andPaddingPolicyinstead ofResolutionandAspectRatio. The two groups of settings are mutually exclusive. Do not use them together.The aspect ratio of thumbnails. Valid values include:
auto,1:1,4:3,3:2,16:9If you specify
auto, Elastic Transcoder tries to preserve the aspect ratio of the video in the output file.- Parameters:
aspectRatio-To better control resolution and aspect ratio of thumbnails, we recommend that you use the values
MaxWidth,MaxHeight,SizingPolicy, andPaddingPolicyinstead ofResolutionandAspectRatio. The two groups of settings are mutually exclusive. Do not use them together.The aspect ratio of thumbnails. Valid values include:
auto,1:1,4:3,3:2,16:9If you specify
auto, Elastic Transcoder tries to preserve the aspect ratio of the video in the output file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxWidth
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.
- Parameters:
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.
-
getMaxWidth
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.
- Returns:
- 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.
-
withMaxWidth
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxHeight
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.
- Parameters:
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.
-
getMaxHeight
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.
- Returns:
- 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.
-
withMaxHeight
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSizingPolicy
Specify one of the following values to control scaling of thumbnails:
-
Fit: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings without exceeding the other value. -
Fill: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnailMaxWidthorMaxHeightsettings 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. -
Stretch: Elastic Transcoder stretches thumbnails to match the values that you specified for thumbnailMaxWidthandMaxHeightsettings. If the relative proportions of the input video and thumbnails are different, the thumbnails will be distorted. -
Keep: Elastic Transcoder does not scale thumbnails. If either dimension of the input video exceeds the values that you specified for thumbnailMaxWidthandMaxHeightsettings, Elastic Transcoder crops the thumbnails. -
ShrinkToFit: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of thumbnailMaxWidthandMaxHeightwithout exceeding either value. If you specify this option, Elastic Transcoder does not scale thumbnails up. -
ShrinkToFill: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one ofMaxWidthandMaxHeightwithout dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.
- Parameters:
sizingPolicy- Specify one of the following values to control scaling of thumbnails:-
Fit: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings without exceeding the other value. -
Fill: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnailMaxWidthorMaxHeightsettings 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. -
Stretch: Elastic Transcoder stretches thumbnails to match the values that you specified for thumbnailMaxWidthandMaxHeightsettings. If the relative proportions of the input video and thumbnails are different, the thumbnails will be distorted. -
Keep: Elastic Transcoder does not scale thumbnails. If either dimension of the input video exceeds the values that you specified for thumbnailMaxWidthandMaxHeightsettings, Elastic Transcoder crops the thumbnails. -
ShrinkToFit: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of thumbnailMaxWidthandMaxHeightwithout exceeding either value. If you specify this option, Elastic Transcoder does not scale thumbnails up. -
ShrinkToFill: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one ofMaxWidthandMaxHeightwithout dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.
-
-
-
getSizingPolicy
Specify one of the following values to control scaling of thumbnails:
-
Fit: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings without exceeding the other value. -
Fill: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnailMaxWidthorMaxHeightsettings 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. -
Stretch: Elastic Transcoder stretches thumbnails to match the values that you specified for thumbnailMaxWidthandMaxHeightsettings. If the relative proportions of the input video and thumbnails are different, the thumbnails will be distorted. -
Keep: Elastic Transcoder does not scale thumbnails. If either dimension of the input video exceeds the values that you specified for thumbnailMaxWidthandMaxHeightsettings, Elastic Transcoder crops the thumbnails. -
ShrinkToFit: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of thumbnailMaxWidthandMaxHeightwithout exceeding either value. If you specify this option, Elastic Transcoder does not scale thumbnails up. -
ShrinkToFill: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one ofMaxWidthandMaxHeightwithout dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.
- Returns:
- Specify one of the following values to control scaling of
thumbnails:
-
Fit: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings without exceeding the other value. -
Fill: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnailMaxWidthorMaxHeightsettings 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. -
Stretch: Elastic Transcoder stretches thumbnails to match the values that you specified for thumbnailMaxWidthandMaxHeightsettings. If the relative proportions of the input video and thumbnails are different, the thumbnails will be distorted. -
Keep: Elastic Transcoder does not scale thumbnails. If either dimension of the input video exceeds the values that you specified for thumbnailMaxWidthandMaxHeightsettings, Elastic Transcoder crops the thumbnails. -
ShrinkToFit: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of thumbnailMaxWidthandMaxHeightwithout exceeding either value. If you specify this option, Elastic Transcoder does not scale thumbnails up. -
ShrinkToFill: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one ofMaxWidthandMaxHeightwithout dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.
-
-
-
withSizingPolicy
Specify one of the following values to control scaling of thumbnails:
-
Fit: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings without exceeding the other value. -
Fill: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnailMaxWidthorMaxHeightsettings 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. -
Stretch: Elastic Transcoder stretches thumbnails to match the values that you specified for thumbnailMaxWidthandMaxHeightsettings. If the relative proportions of the input video and thumbnails are different, the thumbnails will be distorted. -
Keep: Elastic Transcoder does not scale thumbnails. If either dimension of the input video exceeds the values that you specified for thumbnailMaxWidthandMaxHeightsettings, Elastic Transcoder crops the thumbnails. -
ShrinkToFit: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of thumbnailMaxWidthandMaxHeightwithout exceeding either value. If you specify this option, Elastic Transcoder does not scale thumbnails up. -
ShrinkToFill: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one ofMaxWidthandMaxHeightwithout dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.
- Parameters:
sizingPolicy- Specify one of the following values to control scaling of thumbnails:-
Fit: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings without exceeding the other value. -
Fill: Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnailMaxWidthorMaxHeightsettings 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. -
Stretch: Elastic Transcoder stretches thumbnails to match the values that you specified for thumbnailMaxWidthandMaxHeightsettings. If the relative proportions of the input video and thumbnails are different, the thumbnails will be distorted. -
Keep: Elastic Transcoder does not scale thumbnails. If either dimension of the input video exceeds the values that you specified for thumbnailMaxWidthandMaxHeightsettings, Elastic Transcoder crops the thumbnails. -
ShrinkToFit: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of thumbnailMaxWidthandMaxHeightwithout exceeding either value. If you specify this option, Elastic Transcoder does not scale thumbnails up. -
ShrinkToFill: Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one ofMaxWidthandMaxHeightwithout dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
setPaddingPolicy
When you set
PaddingPolicytoPad, 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 thumbnailMaxWidthandMaxHeightsettings.- Parameters:
paddingPolicy- When you setPaddingPolicytoPad, 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 thumbnailMaxWidthandMaxHeightsettings.
-
getPaddingPolicy
When you set
PaddingPolicytoPad, 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 thumbnailMaxWidthandMaxHeightsettings.- Returns:
- When you set
PaddingPolicytoPad, 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 thumbnailMaxWidthandMaxHeightsettings.
-
withPaddingPolicy
When you set
PaddingPolicytoPad, 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 thumbnailMaxWidthandMaxHeightsettings.- Parameters:
paddingPolicy- When you setPaddingPolicytoPad, 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 thumbnailMaxWidthandMaxHeightsettings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
-