[Digikam-devel] [Bug 106928] Digikam custom filename format from date and time
Andreas Mair
Andreas.Mair at linogate.com
Thu Jul 14 08:13:36 BST 2005
Hi,
> > - 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
Hey, that's almost what I want!
But AFAIK it uses one sequence for all photos listed in the import dialog.
So it doesn't start again with "1" if photos are taken on another day?
An example:
I think digiKam would rename the photos to 2005-07-01_001.jpg,
2005-07-01_002.jpg, 2005-07-01_003.jpg, 2005-07-03_004.jpg,
2005-07-03_005.jpg, 2005-07-04_006.jpg ...
Whereas I'd prefer to get 2005-07-01_001.jpg, 2005-07-01_002.jpg,
2005-07-01_003.jpg, 2005-07-03_001.jpg, 2005-07-03_002.jpg,
2005-07-04_001.jpg ...
> read up on strftime man page on how to customize the date. the sequence
Yes, I already know it's using strftime.
> number should of the form %%0nd (where n is the number of digits you
> want)
That has been new to me.
Did I miss something or: where can I find this documented?
> 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
Sorry, I thought it would only appear on the ML.
Regards,
Andreas
More information about the Digikam-devel
mailing list