Gets or sets a value specifying the output image type.
public function getThumbnailType() { } public function setThumbnailType($value) { }
Type: string
A string specifying the output image format, one of the following values:
Value | Description |
---|---|
image/jpeg | Always create a JPEG thumbnail. |
image/png | Always create a PNG thumbnail. |
original | Preserves the original image format if possible. If it is not possible (e.g. the input image is BMP or GIF), it will produce JPEG. |
auto | The output format is selected based on the ThumbnailSizeLimit value - if PNG is small enough to fit in this limit, it will product PNG, otherwise it will create JPEG. |
Default value is "image/jpeg".
This property makes sense only if the Mode property has Thumbnail
value.