## Aurigma Image Uploader 6.5 Dual

# ImageUploader.UploadThumbnail1FitMode Property

- Collapse All Sections
- See Also
- Language Filter ( all languages )
- Supported in: ActiveX , Java

Fit mode of the first thumbnail.

## Syntax

### Initialize

### JavaScript

    <script type="text/javascript" src="iuembed.js">  </script>
    <script type="text/javascript">
    var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
    //...other params...
    iu.addParam("UploadThumbnail1FitMode", "Off");
    //...other params...
    iu.writeHtml();
    </script>

### Get/Set Value in Runtime

### JavaScript

    getImageUploader("ImageUploaderID").setUploadThumbnail1FitMode(value);
    value = getImageUploader("ImageUploaderID").getUploadThumbnail1FitMode();

### Property Value

A member of this enumeration that specifies a fit mode for the first thumbnail:

String value | Integer value | Description
--- | --- | ---
Off | 0 | Do not send a thumbnail of this size to the server.
Fit | 1 | Send a thumbnail which is resized to fit the specified rectangle.
Width | 2 | Send a thumbnail which is resized to have the width which is not larger than the specified one.
Height | 3 | Send a thumbnail which is resized to have the height which is not larger than the specified one.
Icon | 4 | Send an icon of the file instead of the thumbnail.
ActualSize | 5 | Send the image of the original size (rotating and recompressing it if necessary).

If unsupported string value is passed, it is interpreted as Off.

Note

When you receive this value through the JavaScript, integer value will be returned (even if you initialize appropriate property with a string value).

Default value is "Off" (do not send a thumbnail).

## Remarks

If you choose to send resized thumbnails, you can specify the quality of resizing with the UploadThumbnail1ResizeQuality property.

## See Also

### Manual

- Resizing and Rotating Images

### Reference

- UploadSourceFile Property
- UploadThumbnail2FitMode Property
- UploadThumbnail3FitMode Property
- UploadThumbnail1BackgroundColor Property
- UploadThumbnail1CompressOversizedOnly Property
- UploadThumbnail1CompressionMode Property
- UploadThumbnail1CopyExif Property
- UploadThumbnail1CopyIptc Property
- UploadThumbnail1Height Property
- UploadThumbnail1JpegQuality Property
- UploadThumbnail1ResizeQuality Property
- UploadThumbnail1Resolution Property
- UploadThumbnail1Watermark Property
- UploadThumbnail1Width Property