Subject: | Date formatting in Samsung panoramas |
Some panoramas created with Samsung Galaxy Note III camera contain original date in a messed up format:
Show quoted text
>=== CUT ===<
$ exiftool 20140107_122930.jpg | grep -i date | grep -i -v file
Modify Date : 07/01/2014 12:30
Date/Time Original : 07/01/2014 12:30
Create Date : 2014-01-07 12:30:12
First Photo Date : 2014:01:07 08:29:30.870Z
Last Photo Date : 2014:01:07 08:30:34.188Z
Date Guess : 07/01/2014 12:30
Show quoted text>=== CUT ===<
I suggest a patch with a very specific workaround.
Subject: | image-exiftool-pm-9-90-date-formatting-in-samsung-panoramas.patch |
4495a4496,4499
> if ($date =~ /(\d{2})\/(\d{2})\/(\d{4})\s+(\d{2}):(\d{2})/) {
> # Samsung panorama
> $date = sprintf '%04i-%02i-%02i %02i:%02i:00', $3, $1, $2, $4, $5;
> }