* @param imageInfo The image to read the metadata from.
*/
public void readMetadata( ImageInfo imageInfo )
throws BadImageFileException, IOException, UnknownImageTypeException
{
final TIFFMetadataReader reader =
new TIFFMetadataReader( imageInfo, DNGDirectory.class );
final ImageMetadata metadata = reader.readMetadata();
final Document xmpDoc = getXMP( imageInfo );
if ( xmpDoc != null ) {
final ImageMetadata xmpMetadata =
XMPMetadataReader.readFrom( xmpDoc );
metadata.mergeFrom( xmpMetadata );