<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">On Sat, 20 Dec 2008 05:02:37 -0800 (PST) Murray Strome wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><pre>Is it possible to have photos organized by the date/time on which the photos<br>were taken/created?? Currently, the times used seem to be the date/time on which<br>the photos were last modified. Since I usually do some editing of the photos<br>after I have transferred them to my computer, this creates difficulty in having<br>them organized by the actual time they were created.<br><br>Thanks.<br><br>Murray<br><br><br>------------------------------<br>On Sat, 20 Dec 2008 20:38:36 +0100 "Baptiste MATHUS" wrote:<br>Hi Murray,<br>KPhotoAlbum sorts image by EXIF date. Where do your photos come from? If it<br>comes from a digital camera, check your camera, it should set the date when<br>the photo was
 taken.<br><br>Cheers.<br><br>-----------------<br><br>On most of my digital images from my Canon PowerShot A80<br>or my Pentax *istD, there are two sections to the EXIF<br>data (as shown by KPhotoAlbum), each with its own date:<br>Exif.Image   DateTime<br>Exif.Photo   DateTimeOriginal<br><br>KPhotoAlbum organizes things from the first DateTime<br>(which is the last time I edited the photo) and I<br>would like it to use DateTimeOriginal, which is<br>the time I took the photo.<br><br>There is a script that I tried using to rename photos<br>to the EXIF date.  It didn't work for me for the exact<br>same reason. I modified the script to work correctly<br>using the creation date instead, and also changed it<br>to rename the photos to <date><time><original name<br>with spaces replaced by underscore>. It only works on<br>JPEG images.  The original, my (Alpha1) modified version<br>and lots of discussion are
 at:<br><br>http://ceitl.zanestate.edu/blog/archives/2007/05/script-rename-images-by-exif-date/<br><br>The basic problem, as I stated is that the creation date EXIF tag is 0x9003, if<br>I remember correctly.  The first DateTime tag is something else, which I forget.<br><br>This could be dependent upon the software used to edit the photos, and/or possibly<br>the camera.<br><br>I don't think my script posted on the above site is the latest version -- I don't think<br>I had figured out how to get the original date when I last posted something there. However,<br>I have just posted the change to make it work.<br><br>In my script on that page, to get it to work properly, I replaced<br>   exif -t DateTime “$line” |grep Value > exif.$$<br><br>with:<br><br>   exif -i "$line" | grep 0x9003 > exif.$$<br><br>I would guess that KPhotoAlbum uses something equivalent to the first<br>line to find the date, which is OK if the photo has not been edited,<br>but
 not if you want the creation date for a modified photo.<br><br>Murray<br></pre></blockquote></td></tr></table><br>