sizingPolicy property
Specify one of the following values to control scaling of the output album art:
-
Fit:Elastic Transcoder scales the output art so it matches the value that you specified in eitherMaxWidthorMaxHeightwithout exceeding the other value. -
Fill:Elastic Transcoder scales the output art so it matches the value that you specified in eitherMaxWidthorMaxHeightand 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. -
Stretch:Elastic Transcoder stretches the output art to match the values that you specified forMaxWidthandMaxHeight. If the relative proportions of the input art and the output art are different, the output art will be distorted. -
Keep:Elastic Transcoder does not scale the output art. If either dimension of the input art exceeds the values that you specified forMaxWidthandMaxHeight, Elastic Transcoder crops the output art. -
ShrinkToFit:Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one ofMaxWidthandMaxHeightwithout exceeding either value. If you specify this option, Elastic Transcoder does not scale the art up. -
ShrinkToFillElastic Transcoder scales the output art down so that its 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 the art up.
Implementation
final String? sizingPolicy;