---
title: "converter.thumbnailSizeLimit Property  HTML5/Flash Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/FH_P_J_$au_converter_thumbnailSizeLimit.htm
product: "Upload Suite 8"
---

# converter.thumbnailSizeLimit Property HTML5/Flash Uploader JavaScript

Supported technologies:
 
Gets or sets a max file size for a thumbnail generated by uploader.

## Syntax
 
```
$au.imageUploaderFlash({
    converters : [
        {
            //...other params...
            thumbnailSizeLimit: 0,
            //...other params...
        }
    ]
})
```

```
$au.imageUploaderFlash('uploaderID').converters().set(index).thumbnailSizeLimit(value);
value = $au.imageUploaderFlash('uploaderID').converters().get(index).thumbnailSizeLimit();
```
 
### Property Value
 
Type: **Number**
 
A max file size (in bytes) generated by the uploader. If `0` is specified, the uploader does not try to optimize size. It just uses [thumbnailJpegQuality](https://www.aurigma.com/docs/us8/FH_P_J_$au_converter_thumbnailJpegQuality.htm.md) without trying to pick an optimal value.
 
Default value is **0**.

## Remarks
 
This property makes sense only if the [mode](https://www.aurigma.com/docs/us8/FH_P_J_$au_converter_mode.htm.md) property is `Thumbnail` and the converter tries to create JPEG (or [thumbnailType](https://www.aurigma.com/docs/us8/FH_P_J_$au_converter_thumbnailType.htm.md) is `auto`). It works in the following way:
 
1. If the **thumbnailType** is `auto`, it tries to create PNG. If this PNG is smaller than the specified limit, a converter returns the PNG file. Otherwise, it tries to create JPEG as explained further.
2. It tries to create a JPEG file with the max possible quality. If it is too large, it tries smaller value, unless it picks a JPEG quality which produces the desired result.
3. The minimum possible JPEG quality it tries is the value specified by the **thumbnailJpegQuality**. If the file size is still too large, the algorithm stops there and uploads the image created with this quality.

It is important to pick realistic values for the combination of the JPEG quality, size limit and thumbnail dimensions.

## See Also
 
### Reference
 
- [thumbnailJpegQuality Property](https://www.aurigma.com/docs/us8/FH_P_J_$au_converter_thumbnailJpegQuality.htm.md)
- [thumbnailType Property](https://www.aurigma.com/docs/us8/FH_P_J_$au_converter_thumbnailType.htm.md)
- [thumbnailCompressOversizedOnly Property](https://www.aurigma.com/docs/us8/FH_P_J_$au_converter_thumbnailCompressOversizedOnly.htm.md)
- [Aurigma.ImageUploaderFlash.Converter.ThumbnailSizeLimit ASP.NET Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_Aurigma_ImageUploaderFlash_Converter_ThumbnailSizeLimit.htm.md)
- [Converter.ThumbnailSizeLimit PHP Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_P_Converter_ThumbnailSizeLimit.htm.md)

### Manual
 
- [Resizing and Recompressing via HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/iuf-resizing-and-recompressing.htm.md)
