SkiaSharp icon indicating copy to clipboard operation
SkiaSharp copied to clipboard

[BUG] SKBitmap.Decode(string) returns null for some PNG files

Open KWEngine opened this issue 2 years ago • 0 comments

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.).

CubePBR_embedded fbx_MaterialPBR_ROUGHNESS-EMBEDDED_X

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

KWEngine avatar Mar 20 '24 06:03 KWEngine