You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Image.Load throws an ArgumentException when loading PNG #849
I did find this as an issue but had to set the decoder explicitly to being a png otherwise it failed. This was in a .NET Core solution as well whereby I loaded via a stream from Blob Storage in Azure, just giving more information to help.
@casperOne@clintonrocksmith The two issues are not related. There’s something about that png that causes our current decoder to fail. I fixed the issue locally today though.
The other issue sounds like it was due to the input stream being in the wrong position for us to identify the decoder.
@JimBobSquarePants Thanks for the follow-up. I'll keep an eye on this to be closed when a PR gets merged. Looking forward to the next push to Nuget for the fix.
Activity
clintonrocksmith commentedon Mar 19, 2019
Hi there,
I did find this as an issue but had to set the decoder explicitly to being a png otherwise it failed. This was in a .NET Core solution as well whereby I loaded via a stream from Blob Storage in Azure, just giving more information to help.
casperOne commentedon Mar 19, 2019
@clintonrocksmith Thanks for the reply, much appreciated.
That said, I didn't have any luck setting the decoder explicitly. Using
HttpClientto download the link above, I still get the same error using this:May I ask how you were able to get it to load?
JimBobSquarePants commentedon Mar 21, 2019
@casperOne @clintonrocksmith The two issues are not related. There’s something about that png that causes our current decoder to fail. I fixed the issue locally today though.
The other issue sounds like it was due to the input stream being in the wrong position for us to identify the decoder.
casperOne commentedon Mar 21, 2019
@JimBobSquarePants Thanks for the follow-up. I'll keep an eye on this to be closed when a PR gets merged. Looking forward to the next push to Nuget for the fix.
Thanks!
Bounds check. Fix #849
JimBobSquarePants commentedon Mar 22, 2019
@casperOne Don't forget we have rock solid development releases on Myget
https://github.com/SixLabors/ImageSharp#installation
casperOne commentedon Mar 24, 2019
@JimBobSquarePants Thanks for addressing this, I've confirmed this works, and have used the MyGet repository.
Bounds check. Fix SixLabors#849 (SixLabors#851)