Esempio n. 1
0
 protected Task <Stream> GetThumbCollage(List <BaseItem> items)
 {
     return(DynamicImageHelpers.GetThumbCollage(items.Select(i => i.GetImagePath(ImageType.Primary) ?? i.GetImagePath(ImageType.Thumb)).ToList(),
                                                FileSystem,
                                                1600,
                                                900));
 }
Esempio n. 2
0
        protected Task <Stream> GetThumbCollage(List <BaseItem> items)
        {
            var files = items
                        .Select(i => i.GetImagePath(ImageType.Primary) ?? i.GetImagePath(ImageType.Thumb))
                        .Where(i => !string.IsNullOrWhiteSpace(i))
                        .ToList();

            return(DynamicImageHelpers.GetThumbCollage(files,
                                                       FileSystem,
                                                       1600,
                                                       900,
                                                       ApplicationPaths));
        }