Extension aware rename (maintain raw file and jpg association by basename)?

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

Extension aware rename (maintain raw file and jpg association by basename)?

Peter A. Gustafson-2
Hi,

I think the rename tool is great!  I use it to assign filenames based on date and album and it has vastly improved my organization.

Is there a way to do extension aware rename/renumber?  For example:

image010.jpg -> image001.jpg
image011.jpg -> image002.jpg
image011.dng -> image002.dng
image012.jpg -> image003.jpg

instead of:

image010.jpg -> image001.jpg
image011.jpg -> image002.jpg
image011.dng -> image003.dng
image012.jpg -> image004.jpg

Perhaps this feature is available but I've missed it.    Thanks,

Pete

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Extension aware rename (maintain raw file and jpg association by basename)?

Johannes Wienke-3
Am 03.08.2010 16:52 schrieb Peter A. Gustafson:

> I think the rename tool is great!  I use it to assign filenames based on date and album and it has vastly improved my organization.
>
> Is there a way to do extension aware rename/renumber?  For example:
>
> image010.jpg -> image001.jpg
> image011.jpg -> image002.jpg
> image011.dng -> image002.dng
> image012.jpg -> image003.jpg
>
> instead of:
>
> image010.jpg -> image001.jpg
> image011.jpg -> image002.jpg
> image011.dng -> image003.dng
> image012.jpg -> image004.jpg
>
> Perhaps this feature is available but I've missed it.    Thanks,
From the file menu in the rename dialog you can select extension which
expands to [ext].

Johannes


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users

signature.asc (270 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Extension aware rename (maintain raw file and jpg association by basename)?

Peter A. Gustafson-2
On Tuesday, August 03, 2010 02:52:38 pm Johannes Wienke wrote:

> Am 03.08.2010 16:52 schrieb Peter A. Gustafson:
> > I think the rename tool is great!  I use it to assign filenames based on date and album and it has vastly improved my organization.
> >
> > Is there a way to do extension aware rename/renumber?  For example:
> >
> > image010.jpg -> image001.jpg
> > image011.jpg -> image002.jpg
> > image011.dng -> image002.dng
> > image012.jpg -> image003.jpg
> >
> > instead of:
> >
> > image010.jpg -> image001.jpg
> > image011.jpg -> image002.jpg
> > image011.dng -> image003.dng
> > image012.jpg -> image004.jpg
> >
> > Perhaps this feature is available but I've missed it.    Thanks,
>
> From the file menu in the rename dialog you can select extension which
> expands to [ext].
>
> Johannes
>
>

OK... I saw that.  But how do I make it work as I intend?  In my example the rename string "image###.[ext]" causes:

image010.jpg -> image001.jpg
image011.jpg -> image002.jpg
image011.dng -> image003.dng
image012.jpg -> image004.jpg

Thus, it separates the two image011 images into image002 and image003 and "disassociates" their basenames.

Pete
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Extension aware rename (maintain raw file and jpg association by basename)?

Johannes Wienke-3
Am 03.08.2010 22:38 schrieb Peter A. Gustafson:
> OK... I saw that.  But how do I make it work as I intend?  In my example the rename string "image###.[ext]" causes:
>
> image010.jpg -> image001.jpg
> image011.jpg -> image002.jpg
> image011.dng -> image003.dng
> image012.jpg -> image004.jpg
>
> Thus, it separates the two image011 images into image002 and image003 and "disassociates" their basenames.

Ah ok, sorry, Didn't see that. I don't think there is a solution for
this right now. Andi?

Regards,
Johannes


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users

signature.asc (270 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Extension aware rename (maintain raw file and jpg association by basename)?

Peter A. Gustafson-2
On Wednesday 04 August 2010 16:15:24 Johannes Wienke wrote:
> Ah ok, sorry, Didn't see that. I don't think there is a solution for
> this right now. Andi?
>
> Regards,
> Johannes

OK... thanks.  
I'll wait for Andi to reply and then (presumably) file a feature request.  I
assume those working in raw may appreciate this feature.

In the interim for any seeking this feature, below is a bash script I used to
renumber.  This can then be coupled with the digikam renumber process and
[file] string to set the desired filenames.  (ie a two step process).  Be
warned I didn't make this robust so examine and use with care.  

Thanks again!
Pete

PS (Uncomment the important line to make it work... I wanted people to think
before executing!)

#!/bin/bash

function renumber {
    echo Renumbering the archive
    index=1;
    for base in `ls $*|cut -f1 -d.|uniq`; do
        name=`printf %03d $index`
        echo rename ${base} ${name} ${base}.*;
        #rename ${base} ${name} ${base}.*;
        let index=index+1;
    done
}

if [ -z "$1" ]; then
  echo usage: $0 images
  exit 1
else
    renumber $*
fi
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Extension aware rename (maintain raw file and jpg association by basename)?

Bugzilla from andi.clemens@gmx.net
No such a feature is not yet implemented.
Please file a feature request (if there isn't any already).

Andi

On Wednesday 04 August 2010 23:30:11 Peter A. Gustafson wrote:

> On Wednesday 04 August 2010 16:15:24 Johannes Wienke wrote:
> > Ah ok, sorry, Didn't see that. I don't think there is a solution for
> > this right now. Andi?
> >
> > Regards,
> > Johannes
>
> OK... thanks.
> I'll wait for Andi to reply and then (presumably) file a feature request.
> I assume those working in raw may appreciate this feature.
>
> In the interim for any seeking this feature, below is a bash script I used
> to renumber.  This can then be coupled with the digikam renumber process
> and [file] string to set the desired filenames.  (ie a two step process).
> Be warned I didn't make this robust so examine and use with care.
>
> Thanks again!
> Pete
>
> PS (Uncomment the important line to make it work... I wanted people to
> think before executing!)
>
> #!/bin/bash
>
> function renumber {
>     echo Renumbering the archive
>     index=1;
>     for base in `ls $*|cut -f1 -d.|uniq`; do
> name=`printf %03d $index`
> echo rename ${base} ${name} ${base}.*;
> #rename ${base} ${name} ${base}.*;
> let index=index+1;
>     done
> }
>
> if [ -z "$1" ]; then
>   echo usage: $0 images
>   exit 1
> else
>     renumber $*
> fi
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Extension aware rename (maintain raw file and jpg association by basename)?

Peter A. Gustafson-2
On Friday, August 06, 2010 12:53:08 am Andi Clemens wrote:
> No such a feature is not yet implemented.
> Please file a feature request (if there isn't any already).
>
> Andi

I filed a bug report.  Thanks,

https://bugs.kde.org/show_bug.cgi?id=246938

Pete

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users