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

16 bit grayscale png wrong byte endianness #59

Open
borsasd opened this issue Nov 2, 2023 · 1 comment
Open

16 bit grayscale png wrong byte endianness #59

borsasd opened this issue Nov 2, 2023 · 1 comment

Comments

@borsasd
Copy link

borsasd commented Nov 2, 2023

Hi!

I was loading a 16bit integer grayscale image, and I got very confusing results, so I debugged for a good few hours and found that the byte array is correct, but it decodes it as Least Significant Byte first, when it should be Most Significant Byte first.

Of course I can decode from the bytes for myself correctly, but I hope this can get fixed, so others don't bump into the same issue. Or at least they find this issue, and can spend less time wondering what's the problem :)

Thanks

@kornelski
Copy link
Owner

It's a known issue, but if I fix it, it will break everyone's byte-swapping workarounds :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants