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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
webp = "0.2.7"
fn main() { const WIDTH: usize = 4; const HEIGHT: usize = 4; // create an RGBA image, note all the alpha values are 255 let data = vec![255u8; WIDTH * HEIGHT * 4]; let encoder = webp::Encoder::from_rgba(&data, WIDTH as u32, HEIGHT as u32); // encode then decode it let encoded_data = encoder.encode_lossless().to_vec(); let decoder = webp::Decoder::new(&encoded_data); let decoded_image = decoder.decode().unwrap(); // it becomes an RGB image assert(decoded_image.is_alpha(), true); // assertion failed: decoded_image.is_alpha() }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: