//Resolution (first a default, then try to read the metadata)
size.setResolution(context.getSourceResolution());
ImageIOUtil.extractResolution(iiometa, size);
if (size.getWidthMpt() == 0) {
size.calcSizeFromPixels();
}
ImageInfo info = new ImageInfo(uri, mime);
info.getCustomObjects().put(ImageIOUtil.IMAGEIO_METADATA, iiometa);
info.setSize(size);