Click or drag to resize
MediaFileInfoProviderCanResizeImage Method (MediaFileInfo, Int32, Int32, Int32)
Checks whether the image should be processed (resized) by the Image manager (if the destination size is smaller).

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 13.0.131
Syntax
C#
public static bool CanResizeImage(
	MediaFileInfo fileInfo,
	int width,
	int height,
	int maxSideSize
)

Parameters

fileInfo
Type: CMS.MediaLibraryMediaFileInfo
Media file info to check
width
Type: SystemInt32
New width
height
Type: SystemInt32
New height
maxSideSize
Type: SystemInt32
Max side size

Return Value

Type: Boolean
See Also