Bug 106928 - Digikam custom filename format from date and time
Summary: Digikam custom filename format from date and time
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Import-Settings (show other bugs)
Version: 0.7.3
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-07 00:27 UTC by Craig Drummond
Modified: 2022-01-26 11:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Drummond 2005-06-07 00:27:23 UTC
Version:           0.7.3-beta2 (using KDE 3.4.1 Level "a" , SUSE 9.2 UNSUPPORTED)
Compiler:          gcc version 3.3.4 (pre 3.3.5 20040809)
OS:                Linux (i686) release 2.6.8-24.14-default

When uploading images, digikam has the option "Add camera provided date and time". Would it also be possible to specify the format of this? The default appears to be "YYYYMMDD-hh:mm:ss", but I'd prefer "YYYY-MM-DD hh:mm:ss" (which makes it easier to see the separate date parts). This option may be a little too much to add to the GUI, but perhaps add a parameter to the config file of the format:

    customDate=%Y-%M-%D %h:%m:5s

...or similar?
Comment 1 Renchi Raju 2005-06-08 19:47:38 UTC
it is possible to customize the dateformat manually. try entering:
photo-%Y-%m-%d %H:%M:%S in the prefix edit line (turn off "Add camera provided date and time"). For additional customization read the manpage of strftime
Comment 2 Craig Drummond 2005-06-08 22:22:54 UTC
> ------- it is possible to customize the dateformat manually. try entering:
> photo-%Y-%m-%d %H:%M:%S in the prefix edit line (turn off "Add camera
> provided date and time"). For additional customization read the manpage of
> strftime



Wow! Excellent, thank you *very* much. Perhaps this should be documented in 
the help pages?
Comment 3 Andreas Mair 2005-06-30 09:05:38 UTC
Is it possible to add a serial number to the filename?
I store my photos like 2005-06-30_01.jpg where "01" is a two digit number for getting a day's photos unique. Maybe this could be done using "#" for digits like "%Y-%m-%d_##.jpg"? Likely somebody wants to chose the start number (per folder, per day, fix value)...

While taking a look at other digicam import tools I saw that they can use any fields of the source file, e.g. any EXIF information. Are there any plans to get this in digiKam?

This would make the best software for photo management (IMHO) even better :)

/Andreas
Comment 4 Andreas Mair 2005-07-11 11:10:05 UTC
Hi,

no comments?

Regards,
Andreas


On Thursday 30 June 2005 09:05, Andreas Mair wrote:
[bugs.kde.org quoted mail]
Comment 5 Renchi Raju 2005-07-11 11:13:17 UTC
checking the "add sequence number" doesn't work for you?
Comment 6 Andreas Mair 2005-07-13 13:57:18 UTC
Hi,

> ------- Additional Comments From renchi pooh tam uiuc edu  2005-07-11
> 11:13 ------- checking the "add sequence number" doesn't work for you?


It works, but its limited:
- It's always four digits long and starts with "-".
- It numbers all imported photos from 0001 - ????

What I suggested is:
- User selectable length.
- A "make the filename unique" feature, so if I have the "%Y-%m-%d" filename 
template and it's likely that I have multiple photos taken a day, I want to 
make sure that every photo has each unique filename.

Regards,
Andreas
Comment 7 Renchi Raju 2005-07-13 19:36:31 UTC
> - It's always four digits long and starts with "-".

how many digits do you want?

> - It numbers all imported photos from 0001 - ???? 

not sure what you are asking for. what number do you want it start from?

> User selectable length.

this is already possible. read on

> A "make the filename unique" feature, so if I have the "%Y-%m-%d" filename 
> template .....

if you want to make it unique, you will have to add the sequence number

for a completely custom template, turn off both "add datetime" and "add sequence number" and add the template manually in the prefix box. i'm not sure what template you are looking for, but i can give you an example which will ensure a unique number with date added.

photo_%Y-%m-%d_%%03d (the %% in the last term is not a typo)

so the names will be of the type:
photo-2001-01-04-001.jpg

read up on strftime man page on how to customize the date. the sequence number should of the form %%0nd (where n is the number of digits you want)

PS: this bugreport is supposed to be closed. please open a new bugreport or more appropriately, use digikam-users mailing lists (digikam-users@kde.org) for support questions