|
|
@ -149,17 +149,17 @@ namespace Emby.Drawing.ImageMagick
|
|
|
|
|
|
|
|
|
|
|
|
private MagickWand BuildPosterCollageWand(List<string> paths, int width, int height)
|
|
|
|
private MagickWand BuildPosterCollageWand(List<string> paths, int width, int height)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var inputPaths = ImageHelpers.ProjectPaths(paths, 4);
|
|
|
|
var inputPaths = ImageHelpers.ProjectPaths(paths, 3);
|
|
|
|
using (var wandImages = new MagickWand(inputPaths.ToArray()))
|
|
|
|
using (var wandImages = new MagickWand(inputPaths.ToArray()))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var wand = new MagickWand(width, height);
|
|
|
|
var wand = new MagickWand(width, height);
|
|
|
|
wand.OpenImage("gradient:#111111-#111111");
|
|
|
|
wand.OpenImage("gradient:#111111-#111111");
|
|
|
|
using (var draw = new DrawingWand())
|
|
|
|
using (var draw = new DrawingWand())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var iSlice = Convert.ToInt32(width * 0.225);
|
|
|
|
var iSlice = Convert.ToInt32(width * 0.3);
|
|
|
|
int iTrans = Convert.ToInt32(height * .25);
|
|
|
|
int iTrans = Convert.ToInt32(height * .25);
|
|
|
|
int iHeight = Convert.ToInt32(height * .65);
|
|
|
|
int iHeight = Convert.ToInt32(height * .65);
|
|
|
|
var horizontalImagePadding = Convert.ToInt32(width * 0.0275);
|
|
|
|
var horizontalImagePadding = Convert.ToInt32(width * 0.0366);
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var element in wandImages.ImageList)
|
|
|
|
foreach (var element in wandImages.ImageList)
|
|
|
|
{
|
|
|
|
{
|
|
|
|