MediaFileInfoProviderEnsureThumbnailFile Method |
Ensures the thumbnail file.
Namespace: CMS.MediaLibraryAssembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 12.0.0
Syntax public static string EnsureThumbnailFile(
MediaFileInfo fileInfo,
string siteName,
int width = 0,
int height = 0,
int maxSideSize = 0,
bool usePreview = false
)
Parameters
- fileInfo
- Type: CMS.MediaLibraryMediaFileInfo
File info - siteName
- Type: SystemString
Site name - width (Optional)
- Type: SystemInt32
File width - height (Optional)
- Type: SystemInt32
File height - maxSideSize (Optional)
- Type: SystemInt32
Maximum side size - usePreview (Optional)
- Type: SystemBoolean
Use preview file
Return Value
Type:
StringSee Also