converter.thumbnailCompressOversizedOnly Property HTML5/Flash Uploader JavaScript

Supported technologies:

Gets or sets a value indicating whether the uploader should ignore the thumbnail settings if the resized image turns out to be larger than the original file.

Syntax

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

Property Value

Type: Boolean

If true, the thumbnailFitMode is Thumbnail and the resized copy is larger than the original file, the uploader will ignore the resized copy and upload the source file instead.

Default value is false.

Remarks

Sometimes it may turn out that the resized copy is larger than the original file. For example, it may happen if the source image has low JPEG quality, while you set the thumbnailJpegQuality to a large value.

If your goal is to optimize the traffic, you may prefer sending the original file instead of the resized copy (as it is not really optimized). In this case, set this property to true.

See Also

Reference