DropboxFilesEndpoint.GetThumbnailBatch method
Namespace | Skybrud.Social.Dropbox.Endpoints |
---|---|
Assembly | Skybrud.Social.Dropbox.dll |
GetThumbnailBatch(String[])
Get thumbnails for a list of images. Up to 25 thumbnails is allowed in a single batch.
This method currently supports files with the following file extensions: jpg
, jpeg
,
png
, tiff
, tif
, gif
and bmp
. Photos that are larger than 20MB in size
won't be converted to a thumbnail.
public DropboxGetThumbnailBatchResponse GetThumbnailBatch(String[] paths)
Parameters
paths
Array of String
An array of the paths for the images to get thumbnails for.
Returns
An instance of DropboxGetThumbnailBatchResponse representing the response.
GetThumbnailBatch(String[], DropboxThumbnailFormat, DropboxThumbnailSize, DropboxThumbnailMode)
Get thumbnails for a list of images. Up to 25 thumbnails is allowed in a single batch.
This method currently supports files with the following file extensions: jpg
, jpeg
,
png
, tiff
, tif
, gif
and bmp
. Photos that are larger than 20MB in size
won't be converted to a thumbnail.
public DropboxGetThumbnailBatchResponse GetThumbnailBatch(String[] paths, DropboxThumbnailFormat format, DropboxThumbnailSize size, DropboxThumbnailMode mode)
Parameters
paths
Array of String
An array of the paths for the images to get thumbnails for.
format
DropboxThumbnailFormat
The format for the thumbnail image, Skybrud.Social.Dropbox.Options.Files.Thumbnails.DropboxThumbnailFormat.Jpeg
or Skybrud.Social.Dropbox.Options.Files.Thumbnails.DropboxThumbnailFormat.Png
. For images that are photos, Skybrud.Social.Dropbox.Options.Files.Thumbnails.DropboxThumbnailFormat.Jpeg
should be preferred, while Skybrud.Social.Dropbox.Options.Files.Thumbnails.DropboxThumbnailFormat.Png
is better for screenshots and digital arts.
size
DropboxThumbnailSize
The size for the thumbnail image.
mode
DropboxThumbnailMode
How to resize and crop the image to achieve the desired size.
Returns
An instance of DropboxGetThumbnailBatchResponse representing the response.
GetThumbnailBatch(DropboxGetThumbnailBatchOptions)
Get thumbnails for a list of images. Up to 25 thumbnails is allowed in a single batch.
This method currently supports files with the following file extensions: jpg
, jpeg
,
png
, tiff
, tif
, gif
and bmp
. Photos that are larger than 20MB in size
won't be converted to a thumbnail.
public DropboxGetThumbnailBatchResponse GetThumbnailBatch(DropboxGetThumbnailBatchOptions options)
Parameters
options
DropboxGetThumbnailBatchOptions
The options for the request to the Dropbox API.
Returns
An instance of DropboxGetThumbnailBatchResponse representing the response.