mirror of https://github.com/lidarr/Lidarr
Use default MemoryAllocator for ImageSharp resizing
(cherry picked from commit c1a3a8249befde0a1b68e7845d5d2346066457a1)
This commit is contained in:
parent
c28941c88b
commit
c5400cb4b0
|
@ -2,7 +2,6 @@ using NzbDrone.Common.Disk;
|
||||||
using NzbDrone.Common.EnvironmentInfo;
|
using NzbDrone.Common.EnvironmentInfo;
|
||||||
using SixLabors.ImageSharp;
|
using SixLabors.ImageSharp;
|
||||||
using SixLabors.ImageSharp.Formats.Jpeg;
|
using SixLabors.ImageSharp.Formats.Jpeg;
|
||||||
using SixLabors.ImageSharp.Memory;
|
|
||||||
using SixLabors.ImageSharp.Processing;
|
using SixLabors.ImageSharp.Processing;
|
||||||
|
|
||||||
namespace NzbDrone.Core.MediaCover
|
namespace NzbDrone.Core.MediaCover
|
||||||
|
@ -23,9 +22,6 @@ namespace NzbDrone.Core.MediaCover
|
||||||
|
|
||||||
_enabled = true;
|
_enabled = true;
|
||||||
|
|
||||||
// More conservative memory allocation
|
|
||||||
SixLabors.ImageSharp.Configuration.Default.MemoryAllocator = new SimpleGcMemoryAllocator();
|
|
||||||
|
|
||||||
// Thumbnails don't need super high quality
|
// Thumbnails don't need super high quality
|
||||||
SixLabors.ImageSharp.Configuration.Default.ImageFormatsManager.SetEncoder(JpegFormat.Instance, new JpegEncoder
|
SixLabors.ImageSharp.Configuration.Default.ImageFormatsManager.SetEncoder(JpegFormat.Instance, new JpegEncoder
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue