Posted by
Justin McGrath on
Dec 19, 2006; 1:08am
URL: http://imagej.273.s1.nabble.com/TIFF-Image-Timestamp-capture-time-tp3700783p3700786.html
If you are interested in only extracting the DataTime tag (or whatever
tag), you can use something like this in BASH.
for i in *.tif ; do echo $i - `tiffinfo $i | grep DateTime -` >
myfile.txt ; done
Then you'll have a list in myfile.txt with entries like this.
IMG_2392.tif - DateTime: 14:53:01 18:12:2006
This would be easily editable with sed or whatnot to massage into the
desired format. I use something like this to create a spreadsheet of
file names, dates and times and then merge it with another dataset so
if that's your goal, this should work. tiffinfo is part of libtiff
and you'll need that installed.
Justin
On 12/18/06, Curtis Rueden <
[hidden email]> wrote:
> Hi Austin et al,
>
> I played around with ImageJ's getMetadata function with some TIFFs,
> and it didn't seem to return anything for them. So I second Wayne's
> suggestion to try Bio-Formats. If it finds the date stamp in your
> TIFF, it will display it in a field called "DateTime" in the metadata
> window (make sure to check the "Display associated metadata" option).
> Unfortunately, there is no easy way (yet) to use a macro to obtain the
> results of the Bio-Formats metadata table. But you can copy and paste
> it out of there into a text window (Command+A, Command+C, open text
> editor, Command+V).
>
> -Curtis
>
> On 12/18/06, Wayne Rasband <
[hidden email]> wrote:
> > The Bio-Formats plugin at
> >
> >
http://www.loci.wisc.edu/ome/formats.html> >
> > opens many popular microscopy file formats and displays metadata (e.g.,
> > time-stamp data).
> >
> > -wayne
> >
> > On Dec 15, 2006, at 6:58 PM, austincb wrote:
> >
> > > Hi all,
> > >
> > > New to the list!
> > >
> > > Assuming the capture device stores timestamp data into the TIFF file,
> > > is it possible to grab it using ImageJ? If so, can somebody point me
> > > in the right direction as to how I'd get to it?
> > >
> > > Much appreciated,
> > >
> > > -Austin
> > >
> >
>