I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-05-26 20:22:06-07 by snah in response to 10832
Re: Copy 'datetimeoriginal' to 'gpsdatetime'?
Hi Phil,
ok, I consulted the Composite tag name documentations.
Not so surei f I understand it all. So the tag 'datetimeoriginal' is a composite of the tags 'datecreated' and 'timecreated'.
The thing is that I cannot find a tag 'timecreated' in neither the X3F nor the corresponding TIF file, so I figured out a way to extract the values for 'datecreated' and 'timecreated' from 'datetimeoriginal' like this (same for the X3F):
exiftool -datetimeoriginal img110500.tif -d %H:%M:%S Date/Time Original : 10:51:23 exiftool -datetimeoriginal img110500.tif -d %Y:%m:%d Date/Time Original : 2009:01:11

At least I've got both values seeked for extracted.

I just need to figure out how to populate the two tags 'GPSdatestamp' and 'GPStimestamp' with the values extracted above.
Tried this but that does not really make much sense:
exiftool -v -n -Tagsfromfile img110504.tif "-datetimeoriginal" -d %H:%M:%S -GPSTimestamp -d %Y:%m:% +d -GPSDatestamp img110504.tif

The combination of the two should then result in a Composite GPSdateTime value, right?
For me, this is a hard nut to crack (of course, also because I don't really comprehend it.
I know I am close and hope you give me a good hint.
Hans
Direct Responses: 10834 | Write a response