AWS SDK for .NET Documentation
Artwork Class
AmazonAmazon.ElasticTranscoder.ModelArtwork Did this page help you?   Yes   No    Tell us about it...
The file to be used as album art. There can be multiple artworks associated with an audio file, to a maximum of 20.

To remove artwork or leave the artwork empty, you can either set

CopyC#
Artwork
to null, or set the
CopyC#
Merge Policy
to "Replace" and use an empty
CopyC#
Artwork
array.

To pass through existing artwork unchanged, set the

CopyC#
Merge Policy
to "Prepend", "Append", or "Fallback", and use an empty
CopyC#
Artwork
array.

Declaration Syntax
C#
public class Artwork
Members
All MembersConstructorsMethodsProperties



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

AlbumArtFormat
Gets and sets the property AlbumArtFormat.

The format of album art, if any. Valid formats are

CopyC#
.jpg
and
CopyC#
.png
.


Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
InputKey
Gets and sets the property InputKey.

The name of the file to be used as album art. To determine which Amazon S3 bucket contains the specified file, Elastic Transcoder checks the pipeline specified by

CopyC#
PipelineId
; the
CopyC#
InputBucket
object in that pipeline identifies the bucket.

If the file name includes a prefix, for example,

CopyC#
cooking/pie.jpg
, include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error.


MaxHeight
Gets and sets the property MaxHeight.

The maximum height of the output album art in pixels. If you specify

CopyC#
auto
, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.


MaxWidth
Gets and sets the property MaxWidth.

The maximum width of the output album art in pixels. If you specify

CopyC#
auto
, Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.


PaddingPolicy
Gets and sets the property PaddingPolicy.

When you set

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


SizingPolicy
Gets and sets the property SizingPolicy.

Specify one of the following values to control scaling of the output album art:

  • CopyC#
    Fit:
    Elastic Transcoder scales the output art so it matches the value that you specified in either
    CopyC#
    MaxWidth
    or
    CopyC#
    MaxHeight
    without exceeding the other value.
  • CopyC#
    Fill:
    Elastic Transcoder scales the output art so it matches the value that you specified in either
    CopyC#
    MaxWidth
    or
    CopyC#
    MaxHeight
    and matches or exceeds the other value. Elastic Transcoder centers the output art and then crops it in the dimension (if any) that exceeds the maximum value.
  • CopyC#
    Stretch:
    Elastic Transcoder stretches the output art to match the values that you specified for
    CopyC#
    MaxWidth
    and
    CopyC#
    MaxHeight
    . If the relative proportions of the input art and the output art are different, the output art will be distorted.
  • CopyC#
    Keep:
    Elastic Transcoder does not scale the output art. If either dimension of the input art exceeds the values that you specified for
    CopyC#
    MaxWidth
    and
    CopyC#
    MaxHeight
    , Elastic Transcoder crops the output art.
  • CopyC#
    ShrinkToFit:
    Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one of
    CopyC#
    MaxWidth
    and
    CopyC#
    MaxHeight
    without exceeding either value. If you specify this option, Elastic Transcoder does not scale the art up.
  • CopyC#
    ShrinkToFill
    Elastic Transcoder scales the output art down so that its 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 the art up.


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

WithInputKey(String) Obsolete.
Sets the InputKey property

WithMaxHeight(String) Obsolete.
Sets the MaxHeight property

WithMaxWidth(String) Obsolete.
Sets the MaxWidth property

WithPaddingPolicy(String) Obsolete.
Sets the PaddingPolicy property

WithSizingPolicy(String) Obsolete.
Sets the SizingPolicy property

Inheritance Hierarchy
Object
Artwork

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