Beispiel #1
0
        protected Task <Stream> GetSquareCollage(List <BaseItem> items)
        {
            var files = items
                        .Select(i => i.GetImagePath(ImageType.Primary) ?? i.GetImagePath(ImageType.Thumb))
                        .Where(i => !string.IsNullOrWhiteSpace(i))
                        .ToList();

            return(DynamicImageHelpers.GetSquareCollage(files,
                                                        FileSystem,
                                                        800, ApplicationPaths));
        }
Beispiel #2
0
 protected Task <Stream> GetSquareCollage(List <BaseItem> items)
 {
     return(DynamicImageHelpers.GetSquareCollage(items.Select(i => i.GetImagePath(ImageType.Primary) ?? i.GetImagePath(ImageType.Thumb)).ToList(),
                                                 FileSystem,
                                                 800));
 }