// XmlGraphics images caches images by their URI;
// therefore it can only load images from a URI, rather
// than say a byte array, byte buffer, or input stream.
ImageSessionContext sessionContext = new DefaultImageSessionContext(
getImageManager().getImageContext(), null);
ImageInfo info = getImageManager().getImageInfo(url.toString(), sessionContext);
// Note that these figures do not appear to be reliable for EPS