AGG 0.2.2 introduced the "Time offset" feature, which enables you to order chronologically images from different cameras, even if the clocks in the cameras were not in sync. This page explains how to use it.

Ideally, you wouldn't need such feature at all. If all images are taken with one camera, or there are multiple correctly-timed cameras, just enabling "Sort by exif data" from the File->Preferences menu would be sufficient.

But let's say we need to apply the correction. How to do this? Suppose we have two sets of images from the same event:

Image name Date/Time in Exif Actual Date/Time
img_3024.jpg 2007-07-12 13:40:45 2007-07-12 13:40:45
img_3025.jpg 2007-07-14 21:12:08 2007-07-14 21:12:08
img_3027.jpg 2007-07-14 21:14:02 2007-07-14 21:14:02
img_3028.jpg 2007-07-14 21:14:04 2007-07-14 21:14:04
img_3030.jpg 2007-07-14 21:15:15 2007-07-14 21:15:15
img_3031.jpg 2007-07-14 21:15:33 2007-07-14 21:15:33
img_3032.jpg* 2007-07-14 21:15:35 2007-07-14 21:15:35
img_3033.jpg 2007-07-14 21:15:59 2007-07-14 21:15:59
img_3034.jpg 2007-07-14 21:25:21 2007-07-14 21:25:21
img_3038.jpg 2007-07-14 22:34:44 2007-07-14 22:34:44

And:

Image name Date/Time in Exif Actual Date/Time
p0701231.jpg 2001-01-04 20:33:14 2007-07-11 09:13:45
p0701232.jpg 2001-01-08 09:29:38 2007-07-14 21:10:09
p0701233.jpg 2001-01-08 09:33:59 2007-07-14 21:14:30
p0701234.jpg 2001-01-08 09:34:54 2007-07-14 21:15:25
p0701237.jpg* 2001-01-08 09:35:11 2007-07-14 21:15:42
p0701238.jpg 2001-01-08 09:35:46 2007-07-14 21:16:17
p0701239.jpg 2001-01-08 09:43:14 2007-07-14 21:23:45
p0701241.jpg 2001-01-08 09:47:29 2007-07-14 21:28:00

Obviously, the second camera's clock was not set up correctly. It is nevertheless tracking time correctly (AGG cannot work when this is not true; that is, when all images' time are the same). Now we search for a pair of images (one from each camera), that seem to taken at approximately the same time (the less the time difference, the better). Let's say, we choose the ones, that are marked with an asterik above. To add them in AGG's time offset tracker, you should first browse to img_3032.jpg and then click on Gallery->Time Offset->Add. Then, browse to p0701237.jpg and, again, go to Gallery->Time Offset->Add. Then click on "Sort". The resulting order will be:

Image name AGG Corrected Date/Time Actual Date/Time
p0701231.jpg 2007-07-11 09:13:39 2007-07-11 09:13:45
img_3024.jpg 2007-07-12 13:40:45 2007-07-12 13:40:45
p0701232.jpg 2007-07-14 21:10:03 2007-07-14 21:10:09
img_3025.jpg 2007-07-14 21:12:08 2007-07-14 21:12:08
img_3027.jpg 2007-07-14 21:14:02 2007-07-14 21:14:02
img_3028.jpg 2007-07-14 21:14:04 2007-07-14 21:14:04
p0701233.jpg 2007-07-14 21:14:24 2007-07-14 21:14:30
img_3030.jpg 2007-07-14 21:15:15 2007-07-14 21:15:15
p0701234.jpg 2007-07-14 21:15:19 2007-07-14 21:15:25
img_3031.jpg 2007-07-14 21:15:33 2007-07-14 21:15:33
img_3032*.jpg2007-07-14 21:15:35 2007-07-14 21:15:35
p0701237*.jpg2007-07-14 21:15:36 2007-07-14 21:15:42
img_3033.jpg 2007-07-14 21:15:59 2007-07-14 21:15:59
p0701238.jpg 2007-07-14 21:16:11 2007-07-14 21:16:17
p0701239.jpg 2007-07-14 21:23:39 2007-07-14 21:23:45
img_3034.jpg 2007-07-14 21:25:21 2007-07-14 21:25:21
p0701241.jpg 2007-07-14 21:27:54 2007-07-14 21:28:00
img_3038.jpg 2007-07-14 22:34:44 2007-07-14 22:34:44

How does it work? AGG takes Camera #1 for the base in its calculations. Each other camera has some delta (time difference) against Camera #1, and this difference must be added to all camera's pictures, in order to get their times correctly. The delta is measured in seconds, and may be negative, as well as positive. In order to calculate the delta for Camera #2, having picture a.jpg from camera #1 taken at time X and picture b.jpg from camera #2 taken at time Y, the following equality is assumed:

X + 1 = Y + delta

This means, that AGG adjust matters so that b.jpg appears to be taken one second after a.jpg. For camera #3, it will be two seconds after a.jpg, etc. The idea of this assumption is that, after sorting, a.jpg, b.jpg, etc... will be consecutively ordered.

Of course, the "real delta" may be well above one second. If you need to be that exact, you may alter the calculated deltas for each camera. In order to do that, open up the Time Offset dialog and doubleclick on the corresponding camera's entry. It will show the current delta and prompt you to change it. Example: You have a.jpg from camera #1 and b.jpg from camera #2, and you know for sure, that they have been photographed 15 seconds apart. So, add them as you would in the Time Offset's list and then double click on the second entry. The (assumed) difference is currently 1, and we want to make it 15; thus add 14 to the delta value.

Notes/limitations:

Get Anrieff's Gallery Generator at SourceForge.net. Fast, secure and Free Open Source software downloads