You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', .cargo/registry/src/index.crates.io-6f17d22bba15001f/image-0.24.7/./src/codecs/jpeg/encoder.rs:449
Reproduction steps
let mut buffer = Vec::new();
image::ImageEncoder::write_image(image::codecs::jpeg::JpegEncoder::new(&mut
buffer), &[0], 1, 1024, image::ColorType::L8 /* , La8, Rgb8, or Rgba8 */ );
The text was updated successfully, but these errors were encountered:
This happens in
L458, 463, 468, 473
image/src/codecs/jpeg/encoder.rs
Lines 443 to 475 in f1e34f3
Expected
return Result instead of panic?
Actual behaviour
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', .cargo/registry/src/index.crates.io-6f17d22bba15001f/image-0.24.7/./src/codecs/jpeg/encoder.rs:449
Reproduction steps
The text was updated successfully, but these errors were encountered: