Skip to content
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

[BUG] Decoding fails with tif files #2853

Open
1 task done
FuJa0815 opened this issue May 8, 2024 · 0 comments
Open
1 task done

[BUG] Decoding fails with tif files #2853

FuJa0815 opened this issue May 8, 2024 · 0 comments
Labels

Comments

@FuJa0815
Copy link

FuJa0815 commented May 8, 2024

Description

I tried to load large .tif files, but they all fail. I've tried SKImage.FromEncodedData(Stream), SKImage.FromEncodedData(byte[]), SKImage.FromEncodedData(string), SKBitmap.Decode(Stream), SKBitmap.Decode(byte[]), SKBitmap.Decode(string), but they all return null for this image or crash with an ArgumentNullException Value cannot be null. (Parameter 'codec') at SkiaSharp.SKBitmap.Decode(SKCodec codec)

This image does not work:
C 7 142 18-0002.zip

Code

SKImage.FromEncodedData(Stream), SKImage.FromEncodedData(byte[]), SKImage.FromEncodedData(string), SKBitmap.Decode(Stream), SKBitmap.Decode(byte[]), SKBitmap.Decode(string) all don't work

Expected Behavior

These methods should not return null

Actual Behavior

All of these methods return null or crash with an ArgumentNullException

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

Windows 10.0.19045

Behaves the same on a different Windows 11 mashine, don't know the exact version number.

Devices

No response

Relevant Screenshots

No response

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@FuJa0815 FuJa0815 changed the title [BUG] Decoding fails with huge tif files [BUG] Decoding fails with tif files May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant