converter.thumbnailType Property HTML5/Flash Uploader JavaScript

Supported technologies:

Gets or sets a value specifying the output image type.

Syntax

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

Property Value

Type: String

A string specifying the output image format, one of the following values:

ValueDescription
image/jpegAlways create a JPEG thumbnail.
image/pngAlways create a PNG thumbnail.
originalPreserves the original image format if possible. If it is not possible (e.g. the input image is BMP or GIF), it will produce JPEG.
autoThe output format is selected based on the thumbnailSizeLimit value - if PNG is small enough to fit in this limit, it will product PNG, otherwise it will create JPEG.

Default value is "image/jpeg".

Remarks

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

See Also

Reference

Manual