We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I read #2211 and I think this issue is slightly diff.
Image-rs doesn't detect when an jpeg image is rgb8 or rgba8.
With the software The Gimp, I have opened a jpeg file without alpha channel :
Secondly, I have created a other jpeg file with an alpha channel :
On the 2 pictures, img.color() give me Rgba8 and img.color().has_alpha() is true.
img.color()
img.color().has_alpha()
I think, first picture will give me Rgb8 and alpha on false. The second picture will give me Rgba8 and alpha on true.
The text was updated successfully, but these errors were encountered:
The JPEG file format cannot store alpha so I'd expect neither one to be Rgba8. Could you share the code you are using to load the images?
Sorry, something went wrong.
When I read the code from my projet, I realize than I used an intermediate buffer with rgba. Sorry.
No branches or pull requests
I read #2211 and I think this issue is slightly diff.
Image-rs doesn't detect when an jpeg image is rgb8 or rgba8.
With the software The Gimp, I have opened a jpeg file without alpha channel :
Secondly, I have created a other jpeg file with an alpha channel :
Expected
On the 2 pictures,
img.color()
give me Rgba8 andimg.color().has_alpha()
is true.What behaviour should have happened
I think, first picture will give me Rgb8 and alpha on false.
The second picture will give me Rgba8 and alpha on true.
The text was updated successfully, but these errors were encountered: