Gets or sets a max file size for a thumbnail generated by uploader.
Namespace:
Aurigma.ImageUploaderFlash
Assembly:
Aurigma.ImageUploaderFlash (in Aurigma.ImageUploaderFlash.dll)
public int ThumbnailSizeLimit { get; set; }
Type: System..Int32
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 without trying to pick an optimal value.
Default value is 0.
This property makes sense only if the Mode property is Thumbnail
and the converter tries to create JPEG (or ThumbnailType is auto
). It works in the following way:
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.It is important to pick realistic values for the combination of the JPEG quality, size limit and thumbnail dimensions.