Resize quality of thumbnails.
getImageUploader("ImageUploaderID").setUploadThumbnailResizeQuality(Index, value); value = getImageUploader("ImageUploaderID").getUploadThumbnailResizeQuality(Index);
A positive integer that specifies an index of the upload thumbnail (one-based). It should not exceed
UploadThumbnailCount
. If extra upload thumbnails are required,
use the UploadThumbnailAdd() method to add them.
A member of this enumeration that specifies the resize quality of the thumbnails:
String value | Alternative string value | Integer value | Description |
---|---|---|---|
ResizeQualityMedium | Medium | 0 | Default quality. |
ResizeQualityHigh | High | 1 | High quality. When using this mode in ActiveX version, thumbnails are created in two steps. On the first step the thumbnail is created twice as large as required. On the second step the thumbnail is downsized using the Bell filter. |
When you get this property value through the JavaScript, integer value will be returned (even if you initialize the property with a string value).
Image Uploader can generate multiple thumbnails per one file sent to the server. To configure sizes of thumbnails and other parameters, you can manipulate a list of upload thumbnail settings. It can be done two ways:
UploadThumbnailNXXX
parameters, where N is a number in range from 1 to 3.
UploadThumbnailXXX
properties to change specific settings.
First method is simpler, however it allows to upload not more than 3 thumbnails per one file. The second one does not have any limitation on the number of thumbnails.
To get an upload thumbnail on the server use the
UploadThumbnailX
HTTP POST field, where X is an index of the upload thumbnail.
The index of upload thumbnail list is one-based.