diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-02-23 14:48:58 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-02-23 14:48:58 -0500 |
| commit | c7fe8587cbf9e42f195d06aab07a719f991fbb9e (patch) | |
| tree | d587bccd09c40de1b8a2221f2f669f5c3e70affb /Emby.Drawing/ImageMagick/ImageMagickEncoder.cs | |
| parent | ae8060d4aded662197f25d4312f18d0534edb15a (diff) | |
stub out ForegroundLayer param
Diffstat (limited to 'Emby.Drawing/ImageMagick/ImageMagickEncoder.cs')
| -rw-r--r-- | Emby.Drawing/ImageMagick/ImageMagickEncoder.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Emby.Drawing/ImageMagick/ImageMagickEncoder.cs b/Emby.Drawing/ImageMagick/ImageMagickEncoder.cs index b8300ac97..7779c2fc5 100644 --- a/Emby.Drawing/ImageMagick/ImageMagickEncoder.cs +++ b/Emby.Drawing/ImageMagick/ImageMagickEncoder.cs @@ -155,6 +155,7 @@ namespace Emby.Drawing.ImageMagick AutoOrientImage(originalImage); } + AddForegroundLayer(originalImage, options); DrawIndicator(originalImage, width, height, options); originalImage.CurrentImage.CompressionQuality = quality; @@ -177,6 +178,8 @@ namespace Emby.Drawing.ImageMagick } wand.CurrentImage.CompositeImage(originalImage, CompositeOperator.OverCompositeOp, 0, 0); + + AddForegroundLayer(wand, options); DrawIndicator(wand, width, height, options); wand.CurrentImage.CompressionQuality = quality; @@ -189,6 +192,16 @@ namespace Emby.Drawing.ImageMagick SaveDelay(); } + private void AddForegroundLayer(MagickWand wand, ImageProcessingOptions options) + { + if (string.IsNullOrWhiteSpace(options.ForegroundLayer)) + { + return; + } + + // TODO + } + private void AutoOrientImage(MagickWand wand) { wand.CurrentImage.AutoOrientImage(); |
