Closed gpasnik closed 7 years ago
Sorry on the delay for replying on this. New kid born on the day you posted the bug. Running on no sleep at the moment. That said I've run into a similar issue and think I know where the bug is for this one. Couple of questions though, what OS/system are you running the code on? The code base is having a number of issues on Linux at the moment and I've yet to try in anything like say Unity. So any info you can give on the system to test with would be a great help.
Believe I found the issue. The PNG in question was a 48 bit image, 16bit per channel, no alpha. The PNG True Color reader was assuming 32bit by default when reading the scan lines. Changed it to take in to account the bytes per channel and bytes per pixel when reading it. So that should fix that issue.
To the question about OS, I'm running on both - Windows 10 x64 and Linux Mint 18. Thanks for efforts! I'll try it after update.
Hi, I have an issue when I try to create Image object from Stream. Here is the code:
File is the class that contains image's data
And this is the exception that I get when I create Image object "var image = new Image(stream);"
I also attached the image I used, when this exception occured.
Can you take a look on this issue? I've checked the same code with different library: "CoreCompat.System.Drawing" and there it was fine. (only thing I had to change was to replace line
with