mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 06:23:03 +03:00
Update to 3.5.2 and .net core 2.1
This commit is contained in:
@@ -138,7 +138,7 @@ namespace Emby.Drawing.ImageMagick
|
||||
// Even if the caller specified 100, don't use it because it takes forever
|
||||
quality = Math.Min(quality, 99);
|
||||
|
||||
if (string.IsNullOrWhiteSpace(options.BackgroundColor) || !HasTransparency(inputPath))
|
||||
if (string.IsNullOrEmpty(options.BackgroundColor) || !HasTransparency(inputPath))
|
||||
{
|
||||
using (var originalImage = new MagickWand(inputPath))
|
||||
{
|
||||
@@ -216,7 +216,7 @@ namespace Emby.Drawing.ImageMagick
|
||||
|
||||
private void AddForegroundLayer(MagickWand wand, ImageProcessingOptions options)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(options.ForegroundLayer))
|
||||
if (string.IsNullOrEmpty(options.ForegroundLayer))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -328,7 +328,6 @@ namespace Emby.Drawing.ImageMagick
|
||||
{
|
||||
_disposed = true;
|
||||
Wand.CloseEnvironment();
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
private void CheckDisposed()
|
||||
|
||||
Reference in New Issue
Block a user