Changed license to CC0.
[meviz.git] / src / main / java / eu / svjatoslav / meviz / htmlindexer / Utils.java
index ba0d23c..456649d 100755 (executable)
@@ -1,11 +1,8 @@
 /*
- * 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;
 
@@ -28,7 +25,8 @@ import java.util.ArrayList;
 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;
@@ -46,8 +44,7 @@ public class Utils {
         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) {