Class ThumbnailUtil
Inheritance
ThumbnailUtil
Assembly: ImageVault.EPiServer.dll
Syntax
public class ThumbnailUtil : Object, IThumbnailUtil
Constructors
Initializes a new instance of the ThumbnailFormatUtil class.
Declaration
public ThumbnailUtil(IClientFactory clientFactory, ILogger<ThumbnailUtil> logger, IMediaFormatUtil mediaFormatUtil, ScriptHelperBase scriptHelper, int defaultWidth = 558, int defaultHeight = 398, ResizeMode defaultResizeMode)
Parameters
Fields
DefaultChannelHeight
Default channel thumbnail height, double size for retina
Declaration
public const int DefaultChannelHeight = 280
Field Value
DefaultChannelWidth
Default channel thumbnail width, double size for retina
Declaration
public const int DefaultChannelWidth = 280
Field Value
Properties
Gets the Default Format of the Thumbnail
Declaration
public ThumbnailFormat DefaultFormat { get; }
Property Value
DefaultHeight
Gets the default height of the Thumbnail
Declaration
public int DefaultHeight { get; }
Property Value
DefaultResizeMode
Gets the Default Resize Mode of the thumbnail
Declaration
public ResizeMode DefaultResizeMode { get; }
Property Value
DefaultWidth
Gets the default width of the Thumbnail
Declaration
public int DefaultWidth { get; }
Property Value
Methods
Gets the thumbnail format suitable for the supplied value and settings
Declaration
public ThumbnailFormat GetThumbnailFormat(MediaReference value, PropertyMediaSettings currentSettings, DisplayChannelSetting displayChannelSetting = null)
Parameters
Returns
Declaration
public string RenderThumbnails(MediaReference value, string thumbnailCache, PropertyMediaSettings propertyMediaSettings, DisplayChannelSetting displayChannelSetting)
Parameters
Returns
Implements