docs: public static ImageFormat getImageFormat(String filename) {
      FileInputStream fileInputStream = null;
      try {
        fileInputStream = new FileInputStream(filename);
        return getImageFormat(fileInputStream);
      } catch (IOException ioe) {
        return ImageFormat.UNKNOWN;
      } finally {
        Closeables.closeQuietly(fileInputStream);
      }
    }