This documentation is for the old version. Go to the latest Upload Suite docs

converter.thumbnailFitMode Property

Gets or sets the fit mode of the thumbnail.

Syntax

JavaScript Initialize
$au.imageUploaderFlash({
    converters : [
        {
            //...other params...
            thumbnailFitMode: "Fit",
            //...other params...
        }
    ]
})
Get/Set Value at Runtime
$au.imageUploaderFlash('uploaderID').converters().get(index).thumbnailFitMode(value);
value = $au.imageUploaderFlash('uploaderID').converters().get(index).thumbnailFitMode();

Property Value

Type: String

The fit mode of the thumbnail.

Default value is "Fit".

Remarks

The following values are supported:

  • ActualSize means that dimensions of the original image should be kept; however, it can be rotated or recompressed if necessary.
  • Fit means that the original image should be resized to fit the rectangle specified with the thumbnailHeight and thumbnailWidth properties. Note that the proportions of the original image will be kept.
  • Height means that the original image should be resized to be no higher than thumbnailHeight value.
  • Width means that the original image should be resized to be no wider than thumbnailWidth value.

This property makes sense only if the mode property has the Thumbnail value.

See Also

Reference