code: public static ImageInfo read(ByteSource byteSource) throws IOException {
          try (InputStream in = byteSource.openStream()) {
              return read(in);
          }
      }
docs: Opens a stream and reads image info from it. The stream is closed
  afterwards. This method invokes {@link #read(java.io.InputStream) }.
  @param byteSource the byte source
  @return the image info
  @throws IOException if reading fails