Click or drag to resize
MediaFileInfoProviderEnsureThumbnailFileInternal Method
Ensures the thumbnail file.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 12.0.0
Syntax
C#
protected virtual string EnsureThumbnailFileInternal(
	MediaFileInfo fileInfo,
	string siteName,
	int width,
	int height,
	int maxSideSize,
	bool usePreview = false
)

Parameters

fileInfo
Type: CMS.MediaLibraryMediaFileInfo
File info
siteName
Type: SystemString
Site name
width
Type: SystemInt32
File width
height
Type: SystemInt32
File height
maxSideSize
Type: SystemInt32
Maximum side size
usePreview (Optional)
Type: SystemBoolean
Use preview file

Return Value

Type: String
See Also