Class ThumbnailArg
The thumbnail arg object
Inherited Members
Namespace: Dropbox.Api.Files
Assembly: Dropbox.Api.dll
Syntax
public class ThumbnailArg
Constructors
View SourceThumbnailArg(string, ThumbnailFormat, ThumbnailSize, ThumbnailMode, ThumbnailQuality, bool?)
Initializes a new instance of the ThumbnailArg class.
Declaration
public ThumbnailArg(string path, ThumbnailFormat format = null, ThumbnailSize size = null, ThumbnailMode mode = null, ThumbnailQuality quality = null, bool? excludeMediaInfo = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The path to the image file you want to thumbnail. |
| 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 |
Path
The path to the image file you want to thumbnail.
Declaration
public string Path { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
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 |
Size
The size for the thumbnail image.
Declaration
public ThumbnailSize Size { get; protected set; }
Property Value
| Type | Description |
|---|---|
| ThumbnailSize |