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

RGBA TIFF with 4 bits per channel has channels mixed up #681

Closed
bernhardf-ro opened this issue May 31, 2022 · 3 comments
Closed

RGBA TIFF with 4 bits per channel has channels mixed up #681

bernhardf-ro opened this issue May 31, 2022 · 3 comments

Comments

@bernhardf-ro
Copy link
Contributor

The attached TIFF is RGBA with 4 bits per channel. The order of channels seems to get mixed up during reading, including using one of the color channels as alpha.

An included PNG shows the result ("transparent"). The other PNGs are the same but with different background colors or patterns to highlight the incorrect alpha.

Please see attachment and expected colors.

@haraldk
Copy link
Owner

haraldk commented May 31, 2022

Thanks for reporting!

This seems to be an issue with how we read ARGB 4444 as USHORT / 16 bit entities and byte order... I'll fix.

@haraldk
Copy link
Owner

haraldk commented Jun 3, 2022

Thanks for the sample files! Should be fixed now in master.

@haraldk haraldk closed this as completed Jun 3, 2022
@bernhardf-ro
Copy link
Contributor Author

Tried master in our integration and can confirm the fix.

haraldk added a commit that referenced this issue Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants