Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

Latest commit

 

History

History
33 lines (21 loc) · 1.16 KB

dotnetbox.subapis.files.getthumbnail(string,string,thumbnailformat,thumbnailsize).rst

File metadata and controls

33 lines (21 loc) · 1.16 KB
orphan

Files.GetThumbnail Method (string, string, ThumbnailFormat, ThumbnailSize)

Get a thumbnail for an image. 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.

Syntax

Files.GetThumbnail(string path, string savePath, ThumbnailFormat format, ThumbnailSize size)

Parameters

path

System.String The path to the image file you want to thumbnail.

savePath

System.String The path at which to save the thumbnail image.

format

DotNetBox.ThumbnailFormat </classes/dotnetbox.thumbnailformat> The format for the thumbnail image, jpeg (default) or png. For images that are photos, jpeg should be preferred, while png is better for screenshots and digital arts.

size

DotNetBox.ThumbnailSize </classes/dotnetbox.thumbnailsize> The size for the thumbnail image.

Returns

DotNetBox.FileMetadata </classes/dotnetbox.filemetadata> Metadata of the file of which a thumbnail was made.