mirror of https://github.com/Radarr/Radarr
Use default MemoryAllocator for ImageSharp resizing
This commit is contained in:
parent
0f93e04186
commit
c1a3a8249b
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue