Bracketing - saving bracketed pictures into different folders - Feature Requests - CHDK Forum supplierdeeply

Bracketing - saving bracketed pictures into different folders

  • 8 Replies
  • 2523 Views
Bracketing - saving bracketed pictures into different folders
« on: 09 / October / 2009, 07:46:52 »
Advertisements
Hi,

Is there any way to save pictures taken in bracketing mode into separate folders (one folder for each exposure)? It could be perfect to save each bracketed shot with the same file name in each folder.

I use XL bracketing script and perhaps it's not that hard to modify it with new saving commands. Unfortunately I am not familiar with CHDK scripting. 

Thanks,
malol


*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Bracketing - saving bracketed pictures into different folders
« Reply #1 on: 18 / October / 2009, 15:52:15 »
AFAIK, this is not possible. I'm not mistaken, we can't even move files, meaning this can't be done in Lua either unless you are in no hurry (in that case a Lua script could copy and delete the files to their new locations).

*

Offline reyalp

  • ******
  • 11802
Re: Bracketing - saving bracketed pictures into different folders
« Reply #2 on: 18 / October / 2009, 17:45:48 »
You could save the raw/dng at arbitrary locations.
Don't forget what the H stands for.

*

Offline RaduP

  • *****
  • 890
Re: Bracketing - saving bracketed pictures into different folders
« Reply #3 on: 19 / October / 2009, 03:27:13 »
AFAIK, this is not possible. I'm not mistaken, we can't even move files, meaning this can't be done in Lua either unless you are in no hurry (in that case a Lua script could copy and delete the files to their new locations).


Why not? We have the rename function..


*

Offline reyalp

  • ******
  • 11802
Re: Bracketing - saving bracketed pictures into different folders
« Reply #4 on: 19 / October / 2009, 04:22:26 »
Why not? We have the rename function..
On all the cameras tested so far, it literally renames (like the old dos REN command) It does not move. rename: change name in existing directory entry. move: delete one directory entry and create a new one.
Don't forget what the H stands for.

*

Offline RaduP

  • *****
  • 890
Re: Bracketing - saving bracketed pictures into different folders
« Reply #5 on: 19 / October / 2009, 22:42:31 »
Fear not, for I wrote my own implementation when I couldn't find rename:
Code: [Select]
int _rename(const char *oldname, const char *newname)
{
//FILE * fd_old;
//FILE *fd_new;
int fd_old,fd_new;

char * buffer;
int size_read;

fd_old = Fopen_Fut(oldname, "r+b");
if(!fd_old)return -1;

fd_new = Fopen_Fut(newname, "w+b");
buffer=malloc(10000);

while(1)
{
size_read=Fread_Fut(buffer,1,10000,fd_old);
Fwrite_Fut(buffer,size_read,1,fd_new);
if(size_read!=10000)break;
}

Fclose_Fut(fd_new);
Fclose_Fut(fd_old);
free(buffer);
remove(oldname);
return 1;
}

This should do the trick, although it is pretty slow with large files.

*

Offline barret

  • ***
  • 125
  • S3 & a550
Re: Bracketing - saving bracketed pictures into different folders
« Reply #6 on: 20 / October / 2009, 10:08:45 »
some time ago i did bracketed time lapse, stacked it into a hdr movie and wasn't happy with it so i thought: why not make a normal time lapse out of it? but i had to take out only files with same exposure. i have taken 3 bracketed shots, so i had to take out every third file.

so, IMO the fastest and simplest method to separate different exposures into folders is this:
- put your card into reader
- open folder with pictures
- view it as miniatures or list
- resize the window, so only n columns of files fit (where n is the number of exposures)
- select only one column with your mouse
- cut -> paste into different folder

simple, fast, no additional scripts needed. although i'm not quite sure is that what you're looking for :)

one other thing: while using miniatures view, you can tell if you're doing it right: for example, if you have 3 exposures, and you resize window so that only 3 columns of files fit, then you should have normally exposed pictures in the left column, underexposed in the middle, and overexposed in the right column. or something like that.

greets

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Bracketing - saving bracketed pictures into different folders
« Reply #7 on: 24 / October / 2009, 05:47:59 »
This should do the trick, although it is pretty slow with large files.

Will that end up to be os.rename (Lua) in your port or was that just temporary? I'm asking because this could come as a surprise for someone who's been assuming os.rename is fast.


*

Offline RaduP

  • *****
  • 890
Re: Bracketing - saving bracketed pictures into different folders
« Reply #8 on: 25 / October / 2009, 23:38:13 »
reyalp found that pointer, so now it works with the native code.

 

Related Topics