Skip to content

Commit

Permalink
PageImageWriter: handle crashes in convertICCGrayPngIf() leniently an…
Browse files Browse the repository at this point in the history
…d continue
  • Loading branch information
ediweissmann committed Jun 18, 2020
1 parent 858b9e3 commit 2eee8ab
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,7 @@ private static Optional<SeekableSource> convertICCGrayPngIf(SeekableSource sourc
}
}
} catch (IIOException e) {
if(e.getMessage().equals("I/O error reading PNG header!")) {
// this was a different image format with a PNG extension
} else {
throw e;
}
LOG.debug("Failed convertICCGrayPngIf()", e);
}

return Optional.empty();
Expand Down

0 comments on commit 2eee8ab

Please sign in to comment.