IMAGE COUNTER PRESET AFTER ABNORMAL PDN - PROCEDURE
@srsa_4c & @reyalp
Your suggestion worked. Here's the procedure. Let's say your last downloaded image was IMG_5000, you want to shoot-to-PC with IMG_5001, but your last saved image counter was less than that, say IMG_1450. So if you were to shoot-transfer-to-PC after the abnormal PDN instead without a counter preset, your IMG_1451 on PC would get overwritten.
> PUP the camera.
> Take a shot using the CHDKPTP SHOOT button saving to SD card only (with any Canon exposure setting). This will create a directory and save the image with the current (bad) counter + 1, ie the counter that was last saved with a normal shutdown. You can verify the counter error. In this example, you would see IMG_1451.jpg.
> Upload a good JPG renamed with the image counter you want to preset, to the directory that has the incorrect file on SD (where IMG_1451 is). For example: upload IMG_4999.jpg if you want to take a test shot first w/o transferring to PC.
> Delete the bad file, leave the good one.
> Do a normal PDN (ie SHUTDOWN button in CHDKPTP), and then PUP. You should see your uploaded image displayed on OSD in PLAY mode.
> Use CHDKPTP SHOOT button to take a test shot and verify image counter. You should see IMG_5000.jpg added to the directory.
> Manually delete the image directory (and CANONMSC if created).
> If you want, SHUTDOWN again to save this new counter.
> Your next shot will be +1, ie IMG_5001.jpg, hence getting the counter back on track again.