Can Stb_image lib support 32-bit png file? #1342
Unanswered
ouyangpeng
asked this question in
Q&A
Replies: 1 comment 11 replies
-
PNG format only suports 1, 2, 4, 8, and 16 bits per channel, and allows 1, 2, 3, or 4 channels. By 32-bit image you probably mean 4 channels, 8-bits-per-channel. But it doesn't really matter, because stb_image supports all PNG formats. You are probably using the library incorretly. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
When I load a 3D model, some of the pictures are colored, which are 32-bit PNG, and the display is gray,like this:
Describe the solution you'd like
Then I use OpenCV to load these pictures of this 3D model, which becomes a normal color texture。
**Can stb_image lib support 32-bit png file?""
So my request is that in the futer , the image library stb_ image can support loading 32-bit PNG pictures,thanks!
Beta Was this translation helpful? Give feedback.
All reactions