diff --git a/src/main/java/eu/transkribus/interfaces/types/util/ImageUtils.java b/src/main/java/eu/transkribus/interfaces/types/util/ImageUtils.java index 5a4a5d1..9d9397b 100644 --- a/src/main/java/eu/transkribus/interfaces/types/util/ImageUtils.java +++ b/src/main/java/eu/transkribus/interfaces/types/util/ImageUtils.java @@ -112,6 +112,7 @@ public static BufferedImage convertToBufferedImage(URL u) throws IOException { } public static BufferedImage read(URL u) throws IOException { + //TODO always try ImageIO::read first and only loop through all readers if null is returned. if(USE_IMAGE_IO_READ_IMPL) { return ImageIO.read(u); } else { @@ -128,6 +129,7 @@ public static BufferedImage read(URL u) throws IOException { } public static BufferedImage read(File f) throws IOException { + //TODO always try ImageIO::read first and only loop through all readers if null is returned. if(USE_IMAGE_IO_READ_IMPL) { return ImageIO.read(f); } else {