-
-
Notifications
You must be signed in to change notification settings - Fork 854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image.Load throws an ArgumentException when loading PNG #849
Comments
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. |
@clintonrocksmith Thanks for the reply, much appreciated. That said, I didn't have any luck setting the decoder explicitly. Using
May I ask how you were able to get it to load? |
@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. Thanks! |
@casperOne Don't forget we have rock solid development releases on Myget |
@JimBobSquarePants Thanks for addressing this, I've confirmed this works, and have used the MyGet repository. |
Prerequisites
DEBUG
andRELEASE
modeDescription
Loading the following PNG (from a
Stream
orReadOnlyMemory<byte>
instance) throws anArgumentException
.https://user-images.githubusercontent.com/561862/54476020-e3ab4c00-47ce-11e9-9cb1-2542507bf23c.png
Which has the following message:
Notes:
Steps to Reproduce
Use the above image in a
FileStream
(or anyStream
representation).Load the image (this can be copied/pasted into a .NET Core 2.2 console app and the ImageSharp libraries referenced):
System Configuration
The text was updated successfully, but these errors were encountered: