/*
- * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012 -- 2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 3 of the GNU Lesser General Public License
- * or later as published by the Free Software Foundation.
-*/
+ * Meviz - Various tools collection to work with multimedia. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
+ */
+
package eu.svjatoslav.meviz.htmlindexer;
import java.util.HashSet;
import java.util.zip.CRC32;
-import static javax.imageio.ImageIO.read;
+import static org.openimaj.image.ImageUtilities.createBufferedImage;
+import static org.openimaj.image.ImageUtilities.readMBF;
public class Utils {
private static File lastLoadedFile;
if (file.equals(lastLoadedFile))
return lastLoadedBufferedImage;
- System.out.println("Loading image: " + file.getPath());
- lastLoadedBufferedImage = read(file);
+ lastLoadedBufferedImage = createBufferedImage(readMBF(file));
lastLoadedFile = file;
if (lastLoadedBufferedImage == null) {