The Free Software Media System - Server Backend & API
update image magick encoder
Luke Pulverenti0d5903f21583
diff --git a/Emby.Drawing/ImageMagick/ImageMagickEncoder.cs b/Emby.Drawing/ImageMagick/ImageMagickEncoder.csindex 64ddf7e884..5ca6748881 100644--- a/Emby.Drawing/ImageMagick/ImageMagickEncoder.cs+++ b/Emby.Drawing/ImageMagick/ImageMagickEncoder.cs@@ -148,7 +148,7 @@ namespace Emby.Drawing.ImageMagickDrawIndicator(originalImage, width, height, options);originalImage.CurrentImage.CompressionQuality = quality;- //originalImage.CurrentImage.StripImage();+ originalImage.CurrentImage.StripImage();originalImage.SaveImage(outputPath);}@@ -165,7 +165,7 @@ namespace Emby.Drawing.ImageMagickDrawIndicator(wand, width, height, options);wand.CurrentImage.CompressionQuality = quality;- //wand.CurrentImage.StripImage();+ wand.CurrentImage.StripImage();wand.SaveImage(outputPath);}@@ -176,15 +176,14 @@ namespace Emby.Drawing.ImageMagickprivate void ScaleImage(MagickWand wand, int width, int height){- wand.CurrentImage.ResizeImage(width, height);- //if (_config.Configuration.EnableHighQualityImageScaling)- //{- // wand.CurrentImage.ResizeImage(width, height);- //}- //else- //{- // wand.CurrentImage.ScaleImage(width, height);- //}+ if (_config.Configuration.EnableHighQualityImageScaling)+ {+ wand.CurrentImage.ResizeImage(width, height);+ }+ else+ {+ wand.CurrentImage.ScaleImage(width, height);+ }}/// <summary>