You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Controller/Drawing/ImageProcessorExtensions.cs

28 lines
797 B

#pragma warning disable CS1591
using MediaBrowser.Controller.Entities;
6 years ago
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Controller.Drawing
{
public static class ImageProcessorExtensions
{
public static string? GetImageCacheTag(this IImageProcessor processor, BaseItem item, ImageType imageType)
6 years ago
{
return processor.GetImageCacheTag(item, imageType, 0);
}
public static string? GetImageCacheTag(this IImageProcessor processor, BaseItem item, ImageType imageType, int imageIndex)
6 years ago
{
var imageInfo = item.GetImageInfo(imageType, imageIndex);
if (imageInfo is null)
6 years ago
{
return null;
}
return processor.GetImageCacheTag(item, imageInfo);
}
}
}