Use default MemoryAllocator for ImageSharp resizing

This commit is contained in:
Qstick 2023-08-20 18:14:53 -05:00
parent 0f93e04186
commit c1a3a8249b
1 changed files with 0 additions and 4 deletions

View File

@ -2,7 +2,6 @@ using NzbDrone.Common.Disk;
using NzbDrone.Common.EnvironmentInfo;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Formats.Jpeg;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Processing;
namespace NzbDrone.Core.MediaCover
@ -23,9 +22,6 @@ namespace NzbDrone.Core.MediaCover
_enabled = true;
// More conservative memory allocation
SixLabors.ImageSharp.Configuration.Default.MemoryAllocator = new SimpleGcMemoryAllocator();
// Thumbnails don't need super high quality
SixLabors.ImageSharp.Configuration.Default.ImageFormatsManager.SetEncoder(JpegFormat.Instance, new JpegEncoder
{