Closed
Description
This happens in image
from git, revision 092db1e
Expected
Image decodes successfully
Actual behaviour
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: Decoding(DecodingError { format: Exact(Jpeg), underlying: Some(Format("no marker found where RST2 was expected")) })', src/main.rs:3:18
Reproduction steps
fn main() -> std::io::Result<()> {
let path = std::env::args().skip(1).next().unwrap();
let image = image::io::Reader::open(path)?.guess_format().decode().unwrap();
Ok(())
}