converter.thumbnailFitMode Property ActiveX/Java Uploader JavaScript

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Gets or sets a fit mode of the thumbnail.

Syntax

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

Property Value

Type: String

The fit mode of the thumbnail.

The following values are supported:

ValueDescription
ActualSizemeans that dimensions of the original image should be kept; however, it can be rotated or recompressed if necessary.
Fitmeans 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.
Heightmeans that the original image should be resized to be no higher than thumbnailHeight value.
OrientationalFitmeans that the original image should be resized depending on its orientation (portrait or landscape):
  • if portrait then maximum of thumbnailHeight and thumbnailWidth should be thumbnail height
  • if landscape then maximum of thumbnailHeight and thumbnailWidth should be thumbnail width
Widthmeans that the original image should be resized to be no wider than thumbnailWidth value.

Default value is "Fit".

Remarks

Note

ActiveX/Java Uploader Express and Professional restrict a size (width x height) of each created thumbnail to 3 and 5 megapixels respectively. For example, the size of 1500x1500 thumbnail is 2.25 megapixels (1500 pixels x 1500 pixels = 2.25 megapixels), so a thumbnail like this can be uploaded with ActiveX/Java Uploader Express. See the Upload Suite Editions topic for details.

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

See Also

Reference

Manual