NOTE: There is an update below in the text as Firmware 2 changed things a bit
If you own an iPhone, you know this. The built in Camera application takes pictures and names them IMG_xxxx.JPG, where xxxx is an ascending number starting at 0001.
This is to keep images named differently, so even if you put them all in one folder, all has a unique name, and nothing gets overwritten. Now this works great, up unitl you decide to flash your firmware, and upgrade. If you do that, this counter gets reset, and the naming starts again from IMG_0001.JPG, and on.
I am on my 5th firmware, so you can imagine the flustration. I have IMG_0001.JPG 5 times already, and need to rename them one by one to eliminate confusion.
Just recently I was wondering if there was a way to alter the Camera’s naming, and sure enough, I found the answer on a popular iPhone forum. Read on for instrucions if you are interested….
First of all, make sure you have Mobile Finder and Mobile Text Editor installed. If you dont have it, and don’t want it, then just enable WiFi access on the iPhone, enable SSH, and log in from a remote PC. This is what I did, but I realized the Finder way is easier, so I created some screenshots with the later method so that you can try it easily. After all, not everyone is familiar with Linux/Unix shells.
Just fire up Mobile Terminal on your iPhone, and make sure under options, you have View System files, etc enabled. Also make sure the setting for showing “..” is allowed, and therefore you will be able to change directories towards the root of the system.
Once Mobile Finder is set up, just go to the following path:
Double tap on Info.plist, and Finder should lauch Text Editor to view the contents of the file.
At this line: < integer >xxx< /integer >, xxx stands for the number that is after IMG_ in the image’s name. Just change it to whatever is next in line for you, and the pictures will be named accordingly thereafter.
This has been a huge headache for me, and as it turned out, the solution wasn’t that difficult.
Hope you find it useful,
UPDATE: Since firmware 2, Mobile Terminal is no longer an accessible commodity through Installer, at least not at present. I am on 2.1 currently. You can however still edit the file via an SSH session, which is what I did and it worked great. You can also use gTxtEdit application that you can get from Cydia, and open the Info.plist file, edit then save it.