--0OAP2g/MAC+5xKAE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On the weekend I stupidly took a bunch of pictures with the time
setting in my camera set to localtime instead of UTC, and I thought
I could use "jhead -ta" to fix this, but unfortunately that only
modifies one of the three time settings stored in my photos
(DateTimeOriginal); it doesn't update DateTime or DateTimeDigitized.
I took a look at the jhead source code, and didn't see a quick fix
so I came up with a kludge instead: I compiled three versions of
jhead, each one updating a different timestamp.
My diffs against exif.c from jhead-1.8 are attached.
I will email the author of jhead to ask for it be changed to
handle all these DateTime fields.
I'd still really like to find a general EXIF editing script.
--
Gerald Oskoboiny <
[email protected]>
http://impressive.net/people/gerald/
--0OAP2g/MAC+5xKAE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff
*** exif.c Thu Oct 31 17:07:16 2002
--- exif.c.orig Thu Oct 31 21:46:39 2002
***************
*** 97,105 ****
#define TAG_MAXAPERTURE 0x9205
#define TAG_FOCALLENGTH 0x920A
- #define TAG_DATETIME 0x132
#define TAG_DATETIME_ORIGINAL 0x9003
- #define TAG_DATETIME_DIGITIZED 0x9004
#define TAG_USERCOMMENT 0x9286
#define TAG_SUBJECT_DISTANCE 0x9206
--- 97,103 ----
***************
*** 455,461 ****
strncpy(ImageInfo.CameraModel, ValuePtr, 39);
break;
! case TAG_DATETIME_DIGITIZED:
strncpy(ImageInfo.DateTime, ValuePtr, 19);
ImageInfo.DatePointer = ValuePtr;
break;
--- 453,459 ----
strncpy(ImageInfo.CameraModel, ValuePtr, 39);
break;
! case TAG_DATETIME_ORIGINAL:
strncpy(ImageInfo.DateTime, ValuePtr, 19);
ImageInfo.DatePointer = ValuePtr;
break;
--0OAP2g/MAC+5xKAE--