Renaming files

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Renaming files

digikam-2
5.7.0 app on arch.

I have the following files:

granville-island-0345.cr2
granville-island-0349.cr2


I want to rename them to:

granville-street-20171104-0345.cr2
granville-street-20171104-0349.cr2

I tried to use:
granville-street-[meta:Exif.Image.DateTime:yyyyMMdd]-#[0345]

It doesn't work. It gives:
granville-street--345.cr2
granville-street--346.cr2

1. It doesn't pickup the date of the image
2. I want the last 4 digits not 3
3. It only increments consecutively

What am I doing wrong?

--
sknahT

vyS
Reply | Threaded
Open this post in threaded view
|

Re: Renaming files

Maik Qualmann
The correct syntax would be:

granville-street-[date:yyyyMMdd]-####[345,4]

Maik

Am Samstag, 16. Dezember 2017, 03:21:07 CET schrieb [hidden email]:

> 5.7.0 app on arch.
>
> I have the following files:
>
> granville-island-0345.cr2
> granville-island-0349.cr2
>
>
> I want to rename them to:
>
> granville-street-20171104-0345.cr2
> granville-street-20171104-0349.cr2
>
> I tried to use:
> granville-street-[meta:Exif.Image.DateTime:yyyyMMdd]-#[0345]
>
> It doesn't work. It gives:
> granville-street--345.cr2
> granville-street--346.cr2
>
> 1. It doesn't pickup the date of the image
> 2. I want the last 4 digits not 3
> 3. It only increments consecutively
>
> What am I doing wrong?
Reply | Threaded
Open this post in threaded view
|

Re: Renaming files

digikam-2
On Tue, 19 Dec 2017 12:26:47 +0100
Maik Qualmann <[hidden email]> wrote:

> The correct syntax would be:
>
> granville-street-[date:yyyyMMdd]-####[345,4]
>

Thank you it worked ...

Is there a way of getting the string: the last 4 characters from the
right?

granville-island-0345.cr2 ==> 0345

In the documentation, it shows [file]{-5} for the last 5 characters
and it doesn't work for me. I must be missing something.


--
sknahT

vyS