-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Handling corrupt images #17862
Copy link
Copy link
Closed as not planned
Labels
category: imgcodecsfeaturefutureThis issue can't be fixed during restrictions of the compatibility requirementsThis issue can't be fixed during restrictions of the compatibility requirements
Metadata
Metadata
Assignees
Labels
category: imgcodecsfeaturefutureThis issue can't be fixed during restrictions of the compatibility requirementsThis issue can't be fixed during restrictions of the compatibility requirements
I am using
val sourceImageMat = imread(sourceImage.toString())to read a file in java. But for corrputed images it just printsPremature 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?