[Digikam-users] Batch - rename images - sequence number

efpost efpost at web.de
Sun Oct 30 21:04:28 GMT 2005


Hi Rainer,
thanks for the quick answer. Command line rename didn't work for me. 
I got the following error-message 
> Bareword "IMG" not allowed while "strict subs" in use at (eval 1) line 1 <, whatever that means.

Krename worked wonderful and did batch-renaming as expected.

But still I want to see this feature inserted into digikam.

Thanks again,
Udo

--------------




Rainer Lay wrote:

you can use rename (console or something like krename, i.e. a gui for
rename):
rename IMG cityname IMG*.jpg
this will replace IMG with cityname for all file *.jpg.
If you have problems wildcarding the correct files, simply move them to
individual directories.

rgds, Rainer

efpost wrote:
>/ Hi,
/>/ 
/>/ quite recently I switched from windows to linux and from imatch to
/>/ digikam. I'm using version 0.7.4.
/>/ 
/>/ I have not yet solved the following problem: I have got, let's say, 150
/>/ images on my camera with names like IMG_9753.JPG and so on in sequence.
/>/ I want to store them in digikam with names like cityname-9753.JPG. There
/>/ are two possible solutions.
/>/ 1) The downloading process offers me the possibility to change the names
/>/ including a sequence number. But this number starts with 1.
/>/ 
/>/ 2) After I have stored said 150 images in my digikam albums I can
/>/ batch-rename them according to my needs. In the above example I would
/>/ set a prefix string like cityname-97 and a sequence number start value
/>/ of 53, because it is not possible to set a 3 or 4-digit start value.
/>/ This results in the image renamed cityname-97053. If the number of
/>/ images to be renamed is more then 9, digikam inserts a leading 0 between
/>/ prefix string and sequence number.
/>/ 
/>/ Workaround for me is to rename in batches of 9 images. That is quite
/>/ cumbersome.
/>/ 
/>/ Wish is to have sequence number start values both at downloading and
/>/ batch renaming which accept up to 5-digit numbers.
/>/ 
/>/ Hope is that I have overseen some features or made a mistake and that
/>/ somebody will guide me to the right solution.
/>/ 
/>/ Regards
/>/ Udo Einhoff/




More information about the Digikam-users mailing list