Skip to content

"no marker found where RST2 was expected" error on decoding a damaged-but-readable JPEG file #1235

Closed
@Shnatsel

Description

@Shnatsel

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

mountain lion 1

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(())
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions