Browse Source

Use the same MemoryAllocator as the one of the image when decoding icc profile of png with ApplyRgbaCompatibleIccProfile

pull/3028/head
Socolin 2 months ago
parent
commit
7d06e6df3d
  1. 1
      src/ImageSharp/Formats/Png/PngDecoderCore.cs

1
src/ImageSharp/Formats/Png/PngDecoderCore.cs

@ -2170,6 +2170,7 @@ internal sealed class PngDecoderCore : ImageDecoderCore
{
SourceIccProfile = sourceProfile,
TargetIccProfile = destinationProfile,
MemoryAllocator = image.Configuration.MemoryAllocator,
};
ColorProfileConverter converter = new(options);

Loading…
Cancel
Save