SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
MIT License
4.14k
stars
522
forks
source link
[BUG] SKBitmap.Decode(string) returns null for some PNG files #2801
When extracting an embedded PNG texture from a 3d model file (FBX) and then loading that extracted file, SKBitmap.Decode(string) returns null. Other PNGs off the internet work flawlessly.
The attached PNG file works without problems in other applications (Photoshop, Irfanview, Windows Photo Viewer, etc.).
Code
No code needed (see description).
Expected Behavior
No response
Actual Behavior
No response
Version of SkiaSharp
2.88.3 (Current)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
No response
Devices
No response
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Description
When extracting an embedded PNG texture from a 3d model file (FBX) and then loading that extracted file, SKBitmap.Decode(string) returns null. Other PNGs off the internet work flawlessly.
The attached PNG file works without problems in other applications (Photoshop, Irfanview, Windows Photo Viewer, etc.).
Code
No code needed (see description).
Expected Behavior
No response
Actual Behavior
No response
Version of SkiaSharp
2.88.3 (Current)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
No response
Devices
No response
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct