ImageIO failed to read tiff-formatted images in Java 8


In Java 8 and previous versions, ImageIO in JDK fails to read image content. The solution is to use Java 9 or a third-party plug-in.

Plug-ins can be usedTwelveMonkeys ImageIOAddress: Monkeys

Use methods to add dependencies to maven


Because ImageIO automatically searches for inherited interfaces and subclasses under the classpath, there is no need to display calls. No invasion at all. Use the same method as before, for example, read TIFF files

String filename = "D:\logs\temp\test.tif";
        try {
            BufferedImage bufferedImage =;
            if (bufferedImage == null) {
                System.out.println("image read null");
            } else {
                System.out.println("read success");
        } catch (IOException e) {