Serene Life

by garik

submit your photo


Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

Take the 2-minute tour ×
Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. It's 100% free, no registration required.

I found out by trial/error that the "RESET COUNTER" doesn't allow you to reset the image counter, it just increments it to the next largest group of 1000 photos (e.g. from P1000xxx -> P1010xxx -> P1020xxx). I'm stuck at P113, and I want to either set it to P2000000 without having to RESET COUNTER 87 more times, or reset it to zero.

There must be some way to do this: where is the info stored?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Aha, I figured it out. The logic used by the DMC-G2 camera for the "RESET COUNTER" appears to be:

  1. Increment the group nnn (P100, P101, etc.) by 1.
  2. If the photo Pnnn0001.JPG does not exist, set the photo counter to this image and stop.
  3. Otherwise, increment the group nnn by 1. (Wraparound '999' -> '100')
  4. If we haven't tried this group # before, go to step 2.
  5. Otherwise, give up and don't reset the counter.

So to reset the counter to 200, just create directories 100_PANA, 101_PANA, 102_PANA, ... 198_PANA, 199_PANA each with one file in it.

To reset the counter to 100, create directories up through 999_PANA without any 100_PANA directory present.

I wrote a script with jsdb to do this on my Mac:

function pana_reset_help(root,firstnum,lastnum) {
  for (var i = firstnum; i <= lastnum; ++i) { 
    var d=root+'/DCIM/'+i+'_PANA'; 
    system.execute('mkdir '+d);
    // now write a dummy file 
    // to prevent the RESET COUNTER from using this dir
    var S = new Stream(d+"/P"+i+"0001.JPG","w"); 
    S.writeln(); 
    S.close(); 
  };
}

// example run: pana_reset_help('/Volumes/sd7',113,199);
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.