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
When trying to write a 16-bit image with the PnmHeader below, I get the error Invalid color type for selected PAM color type
Invalid color type for selected PAM color type
pnm::ArbitraryHeader { depth: 3, height: image.height(), width: image.width(), maxval: u16::MAX as u32, tupltype: Some(pnm::ArbitraryTuplType::RGB), }
Taking a look at the source, I see no reason as to why only RGB8 & RGBA8 are allowed.
This should work.
Construct an 16-bit RGB image and then pass it to PnmEncoder::write_image, with the header above.
PnmEncoder::write_image
The text was updated successfully, but these errors were encountered:
Now supports BMP. PAM is currently limited to 8-bit due to bug in ima…
4790fb5
…ge library. See image-rs/image#1687
No branches or pull requests
When trying to write a 16-bit image with the PnmHeader below, I get the error
Invalid color type for selected PAM color type
Taking a look at the source, I see no reason as to why only RGB8 & RGBA8 are allowed.
Expected
This should work.
Reproduction steps
Construct an 16-bit RGB image and then pass it to
PnmEncoder::write_image
, with the header above.The text was updated successfully, but these errors were encountered: