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

Unsupported image depth #13

Open
TidbitSoftware opened this issue Aug 19, 2023 · 2 comments
Open

Unsupported image depth #13

TidbitSoftware opened this issue Aug 19, 2023 · 2 comments

Comments

@TidbitSoftware
Copy link

Hello,
First off, thank you for making this very cool tool public! I am having an issue at runtime: I have input two .png images, but am getting,

Unsupported image depth
Can't read (invalid?) image file: <file>

I suspect that the second message is actually a result of the error pointed to in the first. I grep'ed the source, but it wasn't clear what the valid range is for image depth. Do you have documentation on this?

@kallaballa
Copy link
Owner

Hello, First off, thank you for making this very cool tool public!

Thx!

I am having an issue at runtime: I have input two .png images, but am getting,

Unsupported image depth
Can't read (invalid?) image file: <file>

I suspect that the second message is actually a result of the error pointed to in the first. I grep'ed the source, but it wasn't clear what the valid range is for image depth. Do you have documentation on this?

No documenation yet.
The exception is raised here: https://github.com/kallaballa/Poppy/blob/f0e41fd1fcb2db185d90dd280ebf73b58e2e66ef/src/poppy.cpp#L145C1-L147
Supported are images with uchar samples and 1 channels (gray), 3 channels (rgb) or 4 channels (rgba).

@lasconic
Copy link

I had the same problem on Mac M1. The depth was 0.
The solution : don't link sdl2_image while the code include SDL everywhere.
See also https://stackoverflow.com/questions/34642644/weird-sdl-surface-format-bytesperpixel-value

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

3 participants