update image magick encoder

This commit is contained in:
Luke Pulverenti 2015-11-12 14:31:25 -05:00
parent 27d2186827
commit 0d5903f215

View File

@ -148,7 +148,7 @@ namespace Emby.Drawing.ImageMagick
DrawIndicator(originalImage, width, height, options); DrawIndicator(originalImage, width, height, options);
originalImage.CurrentImage.CompressionQuality = quality; originalImage.CurrentImage.CompressionQuality = quality;
//originalImage.CurrentImage.StripImage(); originalImage.CurrentImage.StripImage();
originalImage.SaveImage(outputPath); originalImage.SaveImage(outputPath);
} }
@ -165,7 +165,7 @@ namespace Emby.Drawing.ImageMagick
DrawIndicator(wand, width, height, options); DrawIndicator(wand, width, height, options);
wand.CurrentImage.CompressionQuality = quality; wand.CurrentImage.CompressionQuality = quality;
//wand.CurrentImage.StripImage(); wand.CurrentImage.StripImage();
wand.SaveImage(outputPath); wand.SaveImage(outputPath);
} }
@ -175,16 +175,15 @@ namespace Emby.Drawing.ImageMagick
} }
private void ScaleImage(MagickWand wand, int width, int height) private void ScaleImage(MagickWand wand, int width, int height)
{
if (_config.Configuration.EnableHighQualityImageScaling)
{ {
wand.CurrentImage.ResizeImage(width, height); wand.CurrentImage.ResizeImage(width, height);
//if (_config.Configuration.EnableHighQualityImageScaling) }
//{ else
// wand.CurrentImage.ResizeImage(width, height); {
//} wand.CurrentImage.ScaleImage(width, height);
//else }
//{
// wand.CurrentImage.ScaleImage(width, height);
//}
} }
/// <summary> /// <summary>