Skip to content

Handling corrupt images #17862

@saketsneha

Description

@saketsneha

I am using val sourceImageMat = imread(sourceImage.toString()) to read a file in java. But for corrputed images it just prints Premature end of JPEG file . I can see its not an exception and that is why its not ignoring the image but processing it further. Is there a way to avoid this processing?
Have had a look at the community channel but ws not of much help.Hope you can throw some ideas around this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    category: imgcodecsfeaturefutureThis issue can't be fixed during restrictions of the compatibility requirements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions