Skip to content

Stripped warning? (Image corruption detection #495

@s-pmpodolski

Description

@s-pmpodolski

Thank you for your great library.

When I'm using imagemagick on broken jpeg (prematurely closed), I would get such a warnings:

identify: Corrupt JPEG data: found marker 0xd9 instead of RST1 `broken2.jpg' @ warning/jpeg.c/JPEGWarningHandler/352.

When I'm using identify inside gm:

gm('broken2.jpg').identify({verbose: true}, function (err, data) { ... })

There is no such a warning.

It's not returned from

var identifyStream = gm()
.command('identify')
.in('-verbose')
.in('broken2.jpg')
.stream().pipe(process.stdout);

as well. What I want to achieve is to detect corrupted images (not only jpegs). Maybe there is another method?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions