PDA
View Full Version : Making file numbering 5 digits
Krist
September 15th, 2007, 10:16 AM
Well, I broke the IMG_9999.JPG mark!
So the camera went back to IMG_0000,JPG, IMG_0001.JPG, ...
I have been using an external program to batch rename my files by replacing "_" with "_1" so my files look like IMG_10000.JPG, IMG_10001.JPG, ...
Is there a way to automate this in the downloading process with Downloader Pro?
I stared at the tokens and tried a few ideas, but no luck.
Please help.
DavidB
September 15th, 2007, 01:55 PM
The answer is to some extent camera make and model dependent. From what you say in your post, I'd guess that your camera is a Canon, but which model?
With many Canon cameras, the easiest answer is to use the folder as well as the file number ({q}{r}); that gives a seven digit number, but what's a couple of digits between friends? This is tricky for the 5D however, as it does not save the folder number in camera, and, in effect, reads it off the card; if you have cards with inconsistent folder numbers, you can be in trouble.
You don't need to do a batch rename if you change the download file name in DL Pro Preferences to use tokens; changing this once every 10,000 images is not too much of a burden for most of us. For my 5D and 30D, I have recently changed to something like your manual system, as I find that it is less error-prone. In your case the file name tokens would be something like {f}_1{r}, which would give, say, IMG_10234. However, if you think you will ever need six or more digits, it would be as well to allow for that now.
I hope this helps.
Krist
September 20th, 2007, 11:41 PM
I currently use a 20D.
This is the strand I currently use: D:\%J\Pictures\%Y\%Y.%m.%D\%E1
How should I input "{f}_1{r}" in to it?
Like so:
D:\%J\Pictures\%Y\%Y.%m.%D\{f}_1{r}%E1
???
Chris Breeze
September 21st, 2007, 11:04 AM
I currently use a 20D.
This is the strand I currently use: D:\%J\Pictures\%Y\%Y.%m.%D\%E1
How should I input "{f}_1{r}" in to it?
Like so:
D:\%J\Pictures\%Y\%Y.%m.%D\{f}_1{r}%E1
???
No, this is the download directory. You need to change the filename to {f}_1{r}
(or %f_1%r if you're using a version before DLPro v2.0)
Krist
September 21st, 2007, 02:05 PM
Okay, my bad.
So the file name should be: %f_1%r%o
Krist
September 21st, 2007, 02:50 PM
Ah, just "%f_1%r" works.
So I assume that "%f" means find and "%r" means replace?
If so it doesn't make sense to me.
It should be find "_" and replace it with "_1".
Oh, and I use v1.9
Krist
September 21st, 2007, 03:03 PM
Wow, I posted too soon.
I figured it out.
%f = IMG (first three characters of image name)
%r = 0123 (image number)
So this is a temporary fix then.
Because when I hit picture 20,000 it will number it as 10,000 unless I change my code to %f_2%r.
I was thinking maybe the folder scheme may help for a permanent fix but I'm not figuring out how it will.
Example: picture IMG_1642.JPG is my 11,642 picture taken with my 20D and it resides in a folder called 216CANON on the CF card.
So, as it would appear, the folder numbering is useless for what I'm trying to accomplish.
Unless DLP could understand that a folder starting with a 2 (eg: 2xxCANON) means add a 1 (eg: IMG_1xxxx.JPG) and a folder starting with a 3 (eg: 3xxCANON) means add a 2 (eg: IMG_2xxxx.JPG) and so on.
Or am I understanding the Canon folders incorrectly?
Krist
September 21st, 2007, 03:08 PM
I did it again (posted too early).
Wouldn't %r7 solve everything?
If so, Chris Breeze, you're a genius and you really think of everything when coding this program!
... or am I missing something?
DavidB
September 21st, 2007, 11:30 PM
Wouldn't %r7 solve everything?
I think you want %r5 ({r5} for version 2.0.x users). This gives you the last digit of the folder number plus your four digit image number.
Now I know your camera is a 20D, I know you don't have the issues associated with 1D series cameras and the 5D. If your camera is set to continuous file numbering (the default) - and your posts suggest that it is - then I'd guess that your folder number is currently 101. My D60 used to increment the folder number after 100 frames, but more recent cameras (certainly including my 30D, and I think your 20D as well) only increment the folder number when the file number rolls over after 9999. %r5 will only work as you wish if the roll-over works in this way.
It's because of complications like this (and the fact that I have a 5D), that I am at present setting the most significant digit manually. I can understand why you would wish to do everything automatically and find the need for manual setting irritating, however. It's a matter of personal preference.
If so, Chris Breeze, you're a genius and you really think of everything when coding this program!
For me, the really clever thing about DL Pro (and even more about BB Pro) is the way they deal with a huge amount of complexity 'under the hood' while providing the user with a plain but unfussy interface. The tokens repay a little learning with a great deal of power and complexity. And the help file is, I think, the best I have ever used.
Powered by vBulletin™ Version 4.1.2 Copyright © 2011 vBulletin Solutions, Inc. All rights reserved.