DEBUG and RELEASE mode
I try to load PNG image that displays normally. It also loads normally with .NET Framework's System.Drawing.Image.FromFile() and with ImageMagick.
Simple code:
Image.Load("banner.png");
with image banner_adam7.zip cause an System.ArgumentException with stacktrace:
at ImageSharp.Formats.PngDecoderCore.ComputeColumnsAdam7(Int32 passIndex)
at ImageSharp.Formats.PngDecoderCore.DecodeInterlacedPixelData[TPixel](Stream compressedStream, Image`1 image)
at ImageSharp.Formats.PngDecoderCore.Decode[TPixel](Stream stream)
at ImageSharp.Image.Decode[TPixel](Stream stream, Configuration config)
at ImageSharp.Image.WithSeekableStream[T](Stream stream, Func`2 action)
at ImageSharp.Image.Load[TPixel](Configuration config, Stream stream, IImageFormat& format)
at ImageSharp.Image.Load[TPixel](Configuration config, String path)
at ImageSharp.Image.Load(String path)
at ImageSharpTest.Program.Main(String[] args) in C:\Users\user\Documents\Visual Studio 2017\Projects\ImageSharpTest\Program.cs:line 13
dotnet --info output:.NET Command Line Tools (2.0.0)
Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd1928c9
Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.0\
Microsoft .NET Core Shared Framework Host
Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
Thanks!
This will definitely be related to #301. I'm hoping someone can help out here as we've got a regressive issue I can't solve.
I've seen #301 but supposed that those cases don't cause an exception
You're absolutely right to open this issue as they don't. I just mean that fixing that issue will most likely fix this one. (or vice versa)
Fixed!