MediaFileInfoProviderGetImageThumbnail Method |
Returns image thumbnail from the disk or create a new one if doesn't exist yet.
Namespace: CMS.MediaLibraryAssembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 13.0.131
Syntax 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:
ByteSee Also