mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-29 21:36:31 +01:00
support running in windows as 64-bit process
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
</Reference>
|
||||
<Reference Include="ImageMagickSharp, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\packages\ImageMagickSharp.1.0.0.16\lib\net45\ImageMagickSharp.dll</HintPath>
|
||||
<HintPath>..\packages\ImageMagickSharp.1.0.0.17\lib\net45\ImageMagickSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Patterns.Logging">
|
||||
<HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>
|
||||
|
||||
@@ -72,11 +72,16 @@ namespace Emby.Drawing.ImageMagick
|
||||
|
||||
private void LogVersion()
|
||||
{
|
||||
_logger.Info("ImageMagick version: " + Wand.VersionString);
|
||||
_logger.Info("ImageMagick version: " + GetVersion());
|
||||
TestWebp();
|
||||
Wand.SetMagickThreadCount(1);
|
||||
}
|
||||
|
||||
public static string GetVersion()
|
||||
{
|
||||
return Wand.VersionString;
|
||||
}
|
||||
|
||||
private bool _webpAvailable = true;
|
||||
private void TestWebp()
|
||||
{
|
||||
@@ -148,7 +153,7 @@ namespace Emby.Drawing.ImageMagick
|
||||
DrawIndicator(originalImage, width, height, options);
|
||||
|
||||
originalImage.CurrentImage.CompressionQuality = quality;
|
||||
//originalImage.CurrentImage.StripImage();
|
||||
originalImage.CurrentImage.StripImage();
|
||||
|
||||
originalImage.SaveImage(outputPath);
|
||||
}
|
||||
@@ -165,7 +170,7 @@ namespace Emby.Drawing.ImageMagick
|
||||
DrawIndicator(wand, width, height, options);
|
||||
|
||||
wand.CurrentImage.CompressionQuality = quality;
|
||||
//wand.CurrentImage.StripImage();
|
||||
wand.CurrentImage.StripImage();
|
||||
|
||||
wand.SaveImage(outputPath);
|
||||
}
|
||||
@@ -176,15 +181,16 @@ namespace Emby.Drawing.ImageMagick
|
||||
|
||||
private 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);
|
||||
//}
|
||||
var highQuality = false;
|
||||
|
||||
if (highQuality)
|
||||
{
|
||||
wand.CurrentImage.ResizeImage(width, height);
|
||||
}
|
||||
else
|
||||
{
|
||||
wand.CurrentImage.ScaleImage(width, height);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="CommonIO" version="1.0.0.5" targetFramework="net45" />
|
||||
<package id="ImageMagickSharp" version="1.0.0.16" targetFramework="net45" />
|
||||
<package id="ImageMagickSharp" version="1.0.0.17" targetFramework="net45" />
|
||||
<package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user