# ThumbnailType

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ThumbnailType/

Thumbnail type.

- **Full name:** `MFiles.ThumbnailType`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-THUMBNAIL_TYPE_CLASSIC"></a>`THUMBNAIL_TYPE_CLASSIC` | 0 | The classic thumbnail, square. Icon if no thumbnail available. |
| <a id="v-THUMBNAIL_TYPE_CLASSIC_NO_ICON"></a>`THUMBNAIL_TYPE_CLASSIC_NO_ICON` | 1 | The classic thumbnail, square. Error if no thumbnail available. |
| <a id="v-THUMBNAIL_TYPE_PREVIEW"></a>`THUMBNAIL_TYPE_PREVIEW` | 2 | The preview type in correct aspect ration of the first page. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCThumbnails.GetDocumentFileThumbnail](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCThumbnails/GetDocumentFileThumbnail/index.md): Gets a classic thumbnail or a first-page preview of one file of an object version, as PNG.

<a id="used-in-fields"></a>

## Used in fields

- [`GetDocumentFileThumbnailRequest.type`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCThumbnails/GetDocumentFileThumbnail/index.md#request): `THUMBNAIL_TYPE_CLASSIC` (default) for the cached square thumbnail, or `THUMBNAIL_TYPE_PREVIEW` for a first-page preview.
- [`GetDocumentFileThumbnailResponse.thumbnail_type`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCThumbnails/GetDocumentFileThumbnail/index.md#response): The kind of image returned: `THUMBNAIL_TYPE_PREVIEW` for a page preview, `THUMBNAIL_TYPE_CLASSIC` for a classic thumbnail or a file type icon.
