mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 18:53:27 +01:00
Removed all old and unused ImageEncoders.
Remove solution platform cruft.
This commit is contained in:
@@ -35,7 +35,6 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Emby.Drawing\Emby.Drawing.csproj" />
|
||||
<ProjectReference Include="..\Emby.Drawing.ImageMagick\Emby.Drawing.ImageMagick.csproj" />
|
||||
<ProjectReference Include="..\Emby.Drawing.Skia\Emby.Drawing.Skia.csproj" />
|
||||
<ProjectReference Include="..\Emby.IsoMounting\IsoMounter\IsoMounter.csproj" />
|
||||
<ProjectReference Include="..\Emby.Server.Implementations\Emby.Server.Implementations.csproj" />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
@@ -194,26 +194,13 @@ namespace Jellyfin.Server
|
||||
IEnvironmentInfo environment,
|
||||
ILocalizationManager localizationManager)
|
||||
{
|
||||
if (!startupOptions.ContainsOption("-enablegdi"))
|
||||
try
|
||||
{
|
||||
try
|
||||
{
|
||||
return new SkiaEncoder(logger, appPaths, httpClient, fileSystem, localizationManager);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.LogInformation(ex, "Skia not available. Will try next image processor. {0}");
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
return new ImageMagickEncoder(logger, appPaths, httpClient, fileSystem, environment);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.LogInformation(ex, "ImageMagick not available. Will try next image processor.");
|
||||
}
|
||||
_logger.LogInformation("Falling back on NullImageEncoder");
|
||||
return new SkiaEncoder(logger, appPaths, httpClient, fileSystem, localizationManager);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.LogInformation(ex, "Skia not available. Will fallback to NullIMageEncoder. {0}");
|
||||
}
|
||||
|
||||
return new NullImageEncoder();
|
||||
|
||||
Reference in New Issue
Block a user