DEBUG and RELEASE mode
I am trying to load valid PNG file with 48 bpp
Simple code that leads to System.NotSupportedException "Bit depth is not supported or not valid.":
Image.Load(File.ReadAllBytes("image.png"));
Stacktrace:
at ImageSharp.Formats.PngDecoderCore.ValidateHeader()
at ImageSharp.Formats.PngDecoderCore.Decode[TPixel](Stream stream)
at ImageSharp.Formats.PngDecoder.Decode[TPixel](Configuration configuration, Stream stream, IDecoderOptions options)
at ImageSharp.Image.Decode[TPixel](Stream stream, IDecoderOptions options, Configuration config)
at ImageSharp.Image.Load[TPixel](Configuration config, Stream stream, IDecoderOptions options)
at ImageSharp.Image.Load[TPixel](Configuration config, Byte[] data, IDecoderOptions options)
at ConsoleApp1.Program.Main(String[] args) in c:\users\user\documents\Projects\ConsoleApp\Program.cs:line 14
Image to reproduce bug:

dotnet --info output:.NET Command Line Tools (1.0.4)
Product Information:
Version: 1.0.4
Commit SHA-1 hash: af1e6684fd
Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.4
Yeah, we don't support 48bpp png yet... Something to definitely look into.
@xakep139 That should do it 馃槃
Most helpful comment
@xakep139 That should do it 馃槃