10/21/2009, 05:16 AM
|
#1 (permalink) |
|
Member
![]() Join Date: Sep 2009
Location: NJ, US
Posts: 356
Likes Received: 2
Thanks: 16
Thanked 38 Times in 32 Posts
|
I guess this would be the best place to post this.
Does anyone know how to / or can someone figure out a tweak to change the filename format the is used to save an image taken with the Pre camera? Right now, the images are saved as CIMG0001, CIMG0002, CIMG0003, etc which is fine IF you never move the images to different albums. But, if you like the slightest bit of organization, you will most likely move your images to different albums on the device. After all, isn't that why Palm created this feature? So, once you remove all the images from the DCIM folder then the count starts over again (CIMG0001, CIMG0002....). Now, if you try to move these new pics to an existing folder, there is a real good chance that the filenames will already exist. Before my Pre, I had the total POS HTC Touch with the trainwreck WM6.2. Someone in that little hacker world figured out how to change it so that the filenames were something like IMG_20091021_001, IMG_20091021_002, etc so that it would not only be impossible to duplicate a filename, but also be a reminder of when the pic was taken. Is there a way to do this with WebOS or if not, can someone out there smarter than me find a way? Please
|
10/21/2009, 08:22 AM
|
#2 (permalink) |
|
Member
![]() ![]() ![]() Join Date: Dec 2008
Location: Kansas City, MO
Posts: 1,742
Likes Received: 86
Thanks: 198
Thanked 362 Times in 291 Posts
|
This has come up before, and I don't believe there is a solution at this time. For now, just don't move the last picture taken, and it will keep numbering.
|
10/21/2009, 09:10 AM
|
#3 (permalink) |
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
|
Try this attached .patch file. Should output images from the camera in the format:
IMG_YYYYMMDD_###.jpg (Where YYYY is the year, MM is the month, DD is the day and ### is the unique 3-digit image number) I can't test this in the emulator, but theoretically the patch should work. Last edited by Jason Robitaille; 10/21/2009 at 09:28 AM. |
10/21/2009, 09:35 AM
|
#4 (permalink) | |
|
Member
![]() ![]() Join Date: May 2009
Posts: 1,487
Likes Received: 13
Thanks: 252
Thanked 405 Times in 238 Posts
|
Quote:
|
|
10/21/2009, 09:47 AM
|
#5 (permalink) | |
|
Member
![]() ![]() Join Date: May 2009
Posts: 1,487
Likes Received: 13
Thanks: 252
Thanked 405 Times in 238 Posts
|
Quote:
Do you want me to uninstall it from webOS QI and reinstall to see what those errors were? thoughts? EDIT -- I attached the 2 errors that I received. Does not affect the effectiveness of the patch Last edited by Audemars02; 10/21/2009 at 11:18 AM. Reason: Added screen shots |
|
10/21/2009, 10:00 AM
|
#6 (permalink) |
|
Member
![]() Join Date: Apr 2009
Location: Indiana
Posts: 1,509
Likes Received: 0
Thanks: 45
Thanked 131 Times in 106 Posts
|
I'm going to try this out later today...but I'm glad there's a patch for that. I never know the date I taken a picture. Jason you just keep going and going
|
10/21/2009, 10:02 AM
|
#7 (permalink) |
|
webOS Enthusiast
![]() Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 Posts
|
This is pretty nifty. Thanks Jason.
Don't photos have attached details to them anways so the date added to the filename isn't AS necessary? I know it helps though, but I'm just saying that the date and time are added to the images properties.
__________________
![]() If I helped you or you have downloaded one of my files, then least you could do is click the "Thanks" button. |
10/21/2009, 10:35 AM
|
#8 (permalink) | |
|
Member
![]() ![]() Join Date: May 2009
Posts: 1,487
Likes Received: 13
Thanks: 252
Thanked 405 Times in 238 Posts
|
Quote:
Jason -- any idea if you can add the Shooting Date to the meta-data for the photos as well in a patch, and not just the filename? Thanks! |
|
10/21/2009, 11:04 AM
|
#9 (permalink) |
|
Member
![]() ![]() Join Date: Aug 2009
Location: The HARD Streets of Alpharetta, GA
Posts: 829
Likes Received: 2
Thanks: 44
Thanked 176 Times in 92 Posts
|
you can change the format of the file names by editing the json file of the camera app. Not sure of the file path off the top of my head but it's pretty straightforward once you find it.
edit: Yea, it's in /usr/palm/applications/com.palm.app.camera/camera-prefs-defaults.json Code:
/**
* @author rik sagar
*/
CameraPrefsDefaultPrefs = {
'ALBUM': '100',
'CAMERA-MAKE': 'Palm',
'CAMERA-MODEL': 'Pre ',
'COUNT': '1',
'FILE-PREFIX': 'CIMG',
'GEOTAGGING': 'enabled',
'GPS-ACCURACY-METER': 'disabled',
'GPS-FIX-MAX-AGE': '120',
'GPS-FIX-TIME': '0',
'GPS-LOCATION': '{latitude:53.691869, longitude:-1.633192}',
'PATH-PREFIX': '/media/internal/DCIM/',
'SOUNDS': 'enabled',
'FLASH': '1',
'LAST_CAPTURE_TIME': '0',
'CAPTURE_IDLE_TIME_MAX': '120000',
'WHITE_BALANCE_DELAY': '1',
'CAPTURE_REVIEW_DELAY': '1000'
};
Last edited by DrewPre; 10/21/2009 at 11:11 AM. |
10/21/2009, 11:57 AM
|
#10 (permalink) | |
|
Member
![]() Join Date: Nov 2007
Location: New York
Posts: 539
Likes Received: 1
Thanks: 129
Thanked 36 Times in 36 Posts
|
Quote:
There is no IPTC data however, but unless you're doing serious photojournalism (and this is your backup camera, right?), this doesn't matter to the average person... Regards, -JerryG
__________________
Uniden PC100 -> Visor -> Visor Pro w/VisorPhone -> Tungsten T -> Tungsten T2 -> Tungsten T5 -> TX -> Treo 650 -> Treo 755p -> Pre -> Evo 4G |
|
10/21/2009, 12:13 PM
|
#11 (permalink) |
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
|
@Audemars02, That's a new error, heh. Chances are the worst that would happen with that is EPR would ignore te patched file, though a normal uninstall would undo the changes anyway, nothin too serious. I'll look into the error.
@DrewPre, yea, I changed it from "CIMG" to "IMG_" then altered the actual image number to include the modified string in the camera-control.js file. ![]() So is anyone gonna say if its working or not? I'm eager to know, heh |
10/21/2009, 12:21 PM
|
#12 (permalink) |
|
Member
![]() ![]() Join Date: May 2009
Posts: 1,487
Likes Received: 13
Thanks: 252
Thanked 405 Times in 238 Posts
|
Sorry if I wasn't clear... yes, it works great!!!! I actually did some modifications of my own to change the patch slightly
Changed the following lines: + var fileSuffix = YYYY + "-" + MM + "-" + DD + "_" + imgNumStr; and + 'FILE-PREFIX': 'PRE_', so my pics show as PRE_2009-10-21_001 works great! thanks again! Now, just need to fix those pesky errors i get when installing! |
10/21/2009, 12:23 PM
|
#13 (permalink) | |
|
Member
![]() ![]() Join Date: May 2009
Posts: 1,487
Likes Received: 13
Thanks: 252
Thanked 405 Times in 238 Posts
|
Quote:
Last edited by Audemars02; 10/21/2009 at 12:49 PM. |
|
10/21/2009, 12:38 PM
|
#15 (permalink) | |
|
Member
![]() ![]() Join Date: May 2009
Posts: 1,487
Likes Received: 13
Thanks: 252
Thanked 405 Times in 238 Posts
|
Quote:
NOTE: I take no credit for creating this file beyond the few tweaks I mentioned above. All the credit goes to Jason on this one (again!) Last edited by Audemars02; 10/21/2009 at 12:50 PM. |
|
10/21/2009, 12:40 PM
|
#16 (permalink) | |
|
Member
![]() Join Date: Nov 2007
Location: New York
Posts: 539
Likes Received: 1
Thanks: 129
Thanked 36 Times in 36 Posts
|
Quote:
Regards, -JerryG
__________________
Uniden PC100 -> Visor -> Visor Pro w/VisorPhone -> Tungsten T -> Tungsten T2 -> Tungsten T5 -> TX -> Treo 650 -> Treo 755p -> Pre -> Evo 4G |
|
10/21/2009, 12:58 PM
|
#17 (permalink) | |
|
Member
![]() ![]() Join Date: May 2009
Posts: 1,487
Likes Received: 13
Thanks: 252
Thanked 405 Times in 238 Posts
|
Quote:
Know of any good (and hopefully free) programs to edit the EXIF data for multiple images at once instead of going one-by-one? |
|
10/21/2009, 01:27 PM
|
#18 (permalink) | |
|
Member
![]() Join Date: Nov 2007
Location: New York
Posts: 539
Likes Received: 1
Thanks: 129
Thanked 36 Times in 36 Posts
|
Quote:
![]() Feedback & Feature Requests | Palm USA I've never had to do a bulk change on EXIF data, only ID tags in music files... ![]() What operating system? -JerryG
__________________
Uniden PC100 -> Visor -> Visor Pro w/VisorPhone -> Tungsten T -> Tungsten T2 -> Tungsten T5 -> TX -> Treo 650 -> Treo 755p -> Pre -> Evo 4G |
|
10/21/2009, 01:44 PM
|
#19 (permalink) | |
|
Member
![]() ![]() Join Date: May 2009
Posts: 1,487
Likes Received: 13
Thanks: 252
Thanked 405 Times in 238 Posts
|
Quote:
|
|
10/21/2009, 03:18 PM
|
#20 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Location: Everett, WA
Posts: 441
Likes Received: 0
Thanks: 63
Thanked 48 Times in 41 Posts
|
Quote:
__________________
----------------- Palm III, Palm IIIc, TT, T3, T5, TX, Pre from Day 1. |
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



