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

Allow arbitrary number of samples as long as all have the same bit depth #215

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

fintelia
Copy link
Contributor

As was pointed out in #214 , there doesn't seem to be any reason to return an unsupported error if samples isn't 1, 2, or 4.

This PR doesn't modify the behavior of Decoder::colortype. It will still return an error of type UnsupportedError(InterpretationWithBits(..)) on such images. Matching on the error should expose the BitsPerSample and SamplesPerPixel values, though we should probably add a better way to access that information

@tromper
Copy link
Contributor

tromper commented Oct 4, 2023

Any thoughts on this? It covers everything that is in #216 as well, so that can be ignored if we can merge this.

@fintelia fintelia merged commit 4a2e768 into image-rs:master Oct 4, 2023
7 checks passed
@fintelia
Copy link
Contributor Author

fintelia commented Oct 4, 2023

Forgot about this PR... thanks for the reminder to merge!

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

Successfully merging this pull request may close these issues.

2 participants