[Digikam-devel] Renaming imported photos (was: Re: [Bug 106928] Digikam custom filename format from date and time)
Andreas Mair
Andreas.Mair at linogate.com
Mon Jul 18 10:07:32 BST 2005
Hi,
this weekend I tried the camera import dialog again.
This time I tried to also add the folders where the photos should be stored.
I've organised my photos in folders like <digiKam photo
path>/<year>/<month>/<photos>.jpg
So I tried to set the filename pattern to "%Y/%m/%Y-%m-%d_%%02d". But I
couldn't manage to get this work :(
So my question:
Am I supposed to store all my photos in a single folder? Well, that's not
what I want...
Any change to get this feature?
> > > 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
But this simply adds a sequence number to every imported picture. It does
not check if it's really needed.
Above that: what happens if the destination file already exists?
> > 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 ...
Would it be possible to get an option for getting unique filenames that
calculates the appended number from the destination filename? So if there's
no file matching "2005-07-01_???.jpg" name it "2005-07-01_001.jpg" but if
some exist name it "2005-07-01_<next free sequence number>.jpg".
Maybe this can be presented on the GUI by a "Keep filenames unique"
selectbox having the options "across all files", "in folder", "using per
file sequence".
Where "across all files" should number all images known to digiKam uniquely.
"in folder" would use a unique sequence number per folder. And "using per
file sequence" will do what I tried to explain above.
Maybe this select box can have a "no" option to disable adding a sequence
number.
Regards,
Andreas
More information about the Digikam-devel
mailing list