[Digikam-users] digikam import wrong date mtime <-> ctime

Tobias Philipp maillist at tobias-philipp.de
Wed Sep 1 20:03:20 BST 2010


Hello,

I'm trying to import a few 2000 photos i have copied from friends harddisks or 
downloades as zip's from the internet.

Here is an example:
File: „SL741107.JPG“
  Size: 3483601         Blocks: 6816       IO Block: 16384  reguläre Datei
Device: 806h/2054d      Inode: 9956        Links: 1
Access: (0775/-rwxrwxr-x)  Uid: (    0/    root)   Gid: (  100/   users)
Access: 2010-08-21 00:00:00.000000000 +0200
Modify: 2010-06-13 14:34:16.000000000 +0200
Change: 2010-07-28 22:44:56.340000000 +0200

I try to import the images using the digikam import tool from Import --> Add 
Images and select to rename the images to get the date into the filename.

But digikam using the wrong date for the renaming of the images. The picture 
above will get zoo_2010-07-28... (the date from the download) instead of 
zoo_2010-06-13 ( the date the picture was taken): the ctime is taken and not 
the mtime.

The rename template: zoo-[date:yyyy.MM.dd_hh-mm-ss]_[file]{range:5,8}

I've found https://bugs.kde.org/show_bug.cgi?id=177242 and 
https://bugs.kde.org/show_bug.cgi?id=199967 and the problem should be solved 
by taking the minimum of the to dates, in this case the right 2010.06.13.

Do i something wrong? How can i tell digikam to use the right date?

i would use the exif date from the pictures, but i have not found how to 
format the date like above, is it possible to format 
"[meta:Exif.Image.DateTime]" ?

Im Using digikam 1.4.0 under KDE 4.5.1/openSUSE 11.3.

Sorry for the bad english.

Tobias Philipp



More information about the Digikam-users mailing list