Class ThumbnailV2Arg
The thumbnail v2 arg object
Inherited Members
Namespace: Dropbox.Api.Files
Assembly: Dropbox.Api.dll
Syntax
public class ThumbnailV2Arg
Constructors
View SourceThumbnailV2Arg(PathOrLink, ThumbnailFormat, ThumbnailSize, ThumbnailMode, ThumbnailQuality, bool?)
Initializes a new instance of the ThumbnailV2Arg class.
Declaration
public ThumbnailV2Arg(PathOrLink resource, ThumbnailFormat format = null, ThumbnailSize size = null, ThumbnailMode mode = null, ThumbnailQuality quality = null, bool? excludeMediaInfo = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PathOrLink | resource | Information specifying which file to preview. This could be a path to a file, a shared link pointing to a file, or a shared link pointing to a folder, with a relative path. |
| ThumbnailFormat | format | The format for the thumbnail image, jpeg (default), png, or webp. For images that are photos, jpeg should be preferred, while png is better for screenshots and digital arts, and web for compression. |
| ThumbnailSize | size | The size for the thumbnail image. |
| ThumbnailMode | mode | How to resize and crop the image to achieve the desired size. |
| ThumbnailQuality | quality | Field is only returned for "internal" callers. Quality of the thumbnail image. |
| bool? | excludeMediaInfo | Normally, MediaInfo is set for photo and video. When
this flag is true, MediaInfo is not
populated. This improves latency for use cases where |
Properties
View SourceExcludeMediaInfo
Normally, MediaInfo is set for photo and video. When this flag is true, MediaInfo is not populated. This improves latency for use cases where `media_info` is not needed.
Declaration
public bool? ExcludeMediaInfo { get; protected set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Format
The format for the thumbnail image, jpeg (default), png, or webp. For images that are photos, jpeg should be preferred, while png is better for screenshots and digital arts, and web for compression.
Declaration
public ThumbnailFormat Format { get; protected set; }
Property Value
| Type | Description |
|---|---|
| ThumbnailFormat |
Mode
How to resize and crop the image to achieve the desired size.
Declaration
public ThumbnailMode Mode { get; protected set; }
Property Value
| Type | Description |
|---|---|
| ThumbnailMode |
Quality
Field is only returned for "internal" callers. Quality of the thumbnail image.
Declaration
public ThumbnailQuality Quality { get; protected set; }
Property Value
| Type | Description |
|---|---|
| ThumbnailQuality |
Resource
Information specifying which file to preview. This could be a path to a file, a shared link pointing to a file, or a shared link pointing to a folder, with a relative path.
Declaration
public PathOrLink Resource { get; protected set; }
Property Value
| Type | Description |
|---|---|
| PathOrLink |
Size
The size for the thumbnail image.
Declaration
public ThumbnailSize Size { get; protected set; }
Property Value
| Type | Description |
|---|---|
| ThumbnailSize |