We're Hiring!

Keep original data of an EXIF field

Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats
Please note:
Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats

If you are having trouble with image files, there is information about reporting bugs in the Bio-Formats documentation. Please send us the data and let us know what version of Bio-Formats you are using. For issues with your code, please provide a link to a public repository, ideally GitHub.

Keep original data of an EXIF field

Postby mraschi » Mon Dec 15, 2014 9:54 am

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
mraschi
 
Posts: 6
Joined: Fri Dec 12, 2014 12:33 pm

Re: Keep original data of an EXIF field

Postby mlinkert » Tue Dec 16, 2014 5:37 pm

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
User avatar
mlinkert
Team Member
 
Posts: 353
Joined: Fri May 29, 2009 2:12 pm
Location: Southwest Wisconsin

Re: Keep original data of an EXIF field

Postby mraschi » Fri Dec 19, 2014 9:16 am

Thanks Melissa for your response. It was exactly what I needed.

Marcelo
mraschi
 
Posts: 6
Joined: Fri Dec 12, 2014 12:33 pm


Return to User Discussion [Legacy]

Who is online

Users browsing this forum: Google [Bot] and 1 guest