Click or drag to resize
MediaFileInfoProviderGetThumbnail 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: 10.0.0
Syntax
C#
public static byte[] GetThumbnail(
	string originalFilePath,
	int originalWidth,
	int originalHeight,
	int width,
	int height
)

Parameters

originalFilePath
Type: SystemString
Original file path
originalWidth
Type: SystemInt32
Original width
originalHeight
Type: SystemInt32
Original height
width
Type: SystemInt32
Width
height
Type: SystemInt32
Height

Return Value

Type: Byte
See Also