---
title: "Converter.ThumbnailFitMode Property  ActiveX/Java Uploader PHP"
canonical: https://www.aurigma.com/docs/us8/JA_P_P_Converter_ThumbnailFitMode.htm
archived: false
---

# Converter.ThumbnailFitMode Property ActiveX/Java Uploader PHP

Supported browsers: ![Internet Explorer](https://www.aurigma.com/docs/us8/icons/ie8.png)![Firefox](https://www.aurigma.com/docs/us8/icons/firefox.png)![Google Chrome](https://www.aurigma.com/docs/us8/icons/chrome.png)![Safari](https://www.aurigma.com/docs/us8/icons/safari.png)
 
Gets or sets a fit mode of the thumbnail.

## Syntax
 
```
public function getThumbnailFitMode() {
}

public function setThumbnailFitMode($value) {
}
```
 
### Property Value
 
Type: **string**
 
The fit mode of the thumbnail.
 
The following values are supported:
 
| Value | Description |
| --- | --- |
| **ActualSize** | means that dimensions of the original image should be kept; however, it can be rotated or recompressed if necessary. |
| **Fit** | means that the original image should be resized to fit the rectangle specified with the [ThumbnailHeight](https://www.aurigma.com/docs/us8/JA_P_P_Converter_ThumbnailHeight.htm.md) and [ThumbnailWidth](https://www.aurigma.com/docs/us8/JA_P_P_Converter_ThumbnailWidth.htm.md) properties. Note that the proportions of the original image will be kept. |
| **Height** | means that the original image should be resized to be no higher than **ThumbnailHeight** value. |
| **OrientationalFit** | means that the original image should be resized depending on its orientation (portrait or landscape): <ul> <li>if portrait then maximum of <b>ThumbnailHeight</b> and <b>ThumbnailWidth</b> should be thumbnail height</li> <li>if landscape then maximum of <b>ThumbnailHeight</b> and <b>ThumbnailWidth</b> should be thumbnail width</li> </ul> |
| **Width** | means 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](https://www.aurigma.com/docs/us8/upload-suite-editions.htm.md) topic for details.
 
This property makes sense only if the [Mode](https://www.aurigma.com/docs/us8/JA_P_P_Converter_Mode.htm.md) property has the `Thumbnail` value.

## See Also
 
### Reference
 
- [Aurigma.ImageUploader.Converter.ThumbnailFitMode ASP.NET PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_Converter_ThumbnailFitMode.htm.md)
- [$au.converter.thumbnailFitMode JavaScript PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_J_$au_converter_thumbnailFitMode.htm.md)

### Manual
 
- [Resizing and Recompressing via ActiveX/Java Uploader](https://www.aurigma.com/docs/us8/resizing-and-recompressing.htm.md)
