Page 1 of 1

Keep original data of an EXIF field

PostPosted: Mon Dec 15, 2014 9:54 am
by mraschi
Hello

I need to convert images that have a XML string with key-value pairs in the Exif/ImageDescription field of the metadata.

bfopen is parsing that string, and adding that information as "Global" fields to the rest of the metadata, which is very convenient. The problem is that the Exif/ImageDescription field and its associated XML string is not returned with the metadata, so I'm not able to retrieve the original string to pass it to the converted image.

Is it possible to have this field toghether with the rest of the metadata?

You can find a sample image here:
https://www.dropbox.com/s/v9dfa8543lmck ... 1.tif?dl=0

Thank you very much,
Marcelo

Re: Keep original data of an EXIF field

PostPosted: Tue Dec 16, 2014 5:37 pm
by mlinkert
Hi Marcelo,

In Matlab, you can retrieve the original unprocessed ImageDescription field for any TIFF file as follows:

Code: Select all
description = loci.formats.tiff.TiffParser('/path/to/file.tiff').getComment();


-Melissa

Re: Keep original data of an EXIF field

PostPosted: Fri Dec 19, 2014 9:16 am
by mraschi
Thanks Melissa for your response. It was exactly what I needed.

Marcelo