Use default MemoryAllocator for ImageSharp resizing

(cherry picked from commit c1a3a8249befde0a1b68e7845d5d2346066457a1)
This commit is contained in:
Qstick 2023-08-20 18:14:53 -05:00 committed by Bogdan
parent c28941c88b
commit c5400cb4b0
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
{