Click or drag to resize
MediaFileInfoProviderGetImageThumbnail Method
Returns image thumbnail from the disk or create a new one if doesn't exist yet.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 12.0.0
Syntax
C#
public static byte[] GetImageThumbnail(
	MediaFileInfo fileInfo,
	string libraryFolder,
	string siteName,
	int width = 0,
	int height = 0,
	int maxSideSize = 0
)

Parameters

fileInfo
Type: CMS.MediaLibraryMediaFileInfo
File info
libraryFolder
Type: SystemString
Library folder
siteName
Type: SystemString
Site name
width (Optional)
Type: SystemInt32
Image width
height (Optional)
Type: SystemInt32
Image height
maxSideSize (Optional)
Type: SystemInt32
Maximum side size

Return Value

Type: Byte
See Also