webOS Nation Forums >  Homebrew >  webOS patches > [Patch Request] Pre camera store "date taken" metadata appropriately
[Patch Request] Pre camera store "date taken" metadata appropriately

  Reply
 
LinkBack Thread Tools Display Modes
Old 09/30/2010, 02:35 PM   #1 (permalink)
Member
 
Join Date: Aug 2009
Posts: 3
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default [Patch Request] Pre camera store "date taken" metadata appropriately

As noted elsewhere on the web, the Pre's camera stores the date in the EXIF metadata as "modify date" but not as "date taken". Meaning that the information is there, just not in the correct field so therefore programs [such as photoshop, windows, photobucket, flicker, etc] don't know to look for it. Also, it is worth noting that my wife's Pixi DOES store the "date taken" information appropriately.

The reason this matters, is when I download the photos to my computer and try to sort by date, it won't be able to do that because the date and time information isn't encoded correctly into the metadata. Yes, you can sort by title, but for example when my wife and I go on vacation and then combine our photos into one folder we cannot sort by date taken. Her's sorts by date taken, but mine will not because the information isn't there.

If you have a EXIF editing program such as Exifer you can copy it over. But a patch would be much cleaner.

A successful patch for this problem would, when a photo is taken, store the information that is currently being stored as the EXIF field "modify date" in the EXIF field "date taken" as well. This is only required on the Pre, as the Pixi already does so. Thereby allowing many third party programs to have access to that information as well.

I know the Pre is capable of doing this since it stores other metadata such as gps coordinates, and since the Pixi does it. Due to all of this, I would think it would be a fairly quick and easy patch to make. Of course, I really don't know what I'm talking about...
korky99_04 is offline   Reply With Quote
Old 10/01/2010, 10:26 PM   #2 (permalink)
Member
 
Audemars02's Avatar
 
Join Date: May 2009
Posts: 1,487
Likes Received: 13
Thanks: 252
Thanked 405 Times in 238 Posts
Default

i really hope someone can figure out how to do this..it really frustrates me. you mention using programs to copy that date over to the correct field, but can you tell me if you can do a mass-update, or do you have to do each photo one at a time?
__________________
I am the creator of the PalmSpot entry “webOS Does, and Does, and Does Some More”, writes Save/Restore scripts and helps manage the script feed, and now writes PreCentral's Tip of the Day

Got a good tip for PreCentral's Tip of the Day? Please send me a PM or use the Contact Us form and select "Suggest a tip"

Like any of my work:
Audemars02 is offline   Reply With Quote
Old 10/02/2010, 12:48 PM   #3 (permalink)
Member
 
Join Date: Aug 2009
Posts: 416
Likes Received: 0
Thanks: 41
Thanked 50 Times in 39 Posts
Default

Quote:
Originally Posted by Audemars02 View Post
...you mention using programs to copy that date over to the correct field, but can you tell me if you can do a mass-update, or do you have to do each photo one at a time?
I used IrfanView (on PC) in batch mode to rename files from IMG_0001 format to date/timestamp. So, I know it can at least read the date/time data.

Regards,
Tom
TomJ is offline   Reply With Quote
Old 10/03/2010, 06:41 PM   #4 (permalink)
Member
 
Join Date: Aug 2009
Posts: 3
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, it is amazing that such a glaring oversight as this remains unpatched.

I have only been able to do each photo individually using exifer. *Howere, I read on another post online somewhere about a command line based program that can do entire directories at a time. *Google search "Wannabe futurist palm pre exif" to see that other post.
korky99_04 is offline   Reply With Quote
Old 12/10/2010, 09:40 AM   #5 (permalink)
Member
 
quini's Avatar
 
Join Date: Dec 2009
Location: Ibiza
Posts: 128
Likes Received: 0
Thanks: 44
Thanked 15 Times in 14 Posts
Smile Using exiftool to make F-Spot use the right shooting time

Hi!

I've found a solution, thanks to this post.

In Linux Ubuntu Maverick you can find package libimage-exiftool-perl; it's got the exiftool utility in it.

You can use that app to copy the date and time the photo was taken (stored in exif's "modify date" tab), to the following tabs:
  • DateTimeOriginal
  • CreateDate

After making that modification, F-Spot now recognizes the right date taken.

Here's the command:
Code:
exiftool "-exif:alldates<modifydate" Dir_or_files
Hope it also works for you
quini is offline   Reply With Quote
Old 12/14/2010, 02:43 PM   #6 (permalink)
Member
 
Audemars02's Avatar
 
Join Date: May 2009
Posts: 1,487
Likes Received: 13
Thanks: 252
Thanked 405 Times in 238 Posts
Default

Quote:
Originally Posted by quini View Post
Hi!

I've found a solution, thanks to this post.

In Linux Ubuntu Maverick you can find package libimage-exiftool-perl; it's got the exiftool utility in it.

You can use that app to copy the date and time the photo was taken (stored in exif's "modify date" tab), to the following tabs:
  • DateTimeOriginal
  • CreateDate

After making that modification, F-Spot now recognizes the right date taken.

Here's the command:
Code:
exiftool "-exif:alldates<modifydate" Dir_or_files
Hope it also works for you
any way to package this up as an ondevice app?
__________________
I am the creator of the PalmSpot entry “webOS Does, and Does, and Does Some More”, writes Save/Restore scripts and helps manage the script feed, and now writes PreCentral's Tip of the Day

Got a good tip for PreCentral's Tip of the Day? Please send me a PM or use the Contact Us form and select "Suggest a tip"

Like any of my work:
Audemars02 is offline   Reply With Quote
Old 12/14/2010, 02:50 PM   #7 (permalink)
Moderator
 
Cantaffordit's Avatar
 
Join Date: Jan 2010
Posts: 15,150
Likes Received: 958
Thanks: 3,804
Thanked 3,911 Times in 2,777 Posts
Default

have you guys tried any of the metadata patches in preware? I'm not really sure about your issue, so let me know if those are unrelated.
Cantaffordit is offline   Reply With Quote
Old 12/14/2010, 02:56 PM   #8 (permalink)
Member
 
Audemars02's Avatar
 
Join Date: May 2009
Posts: 1,487
Likes Received: 13
Thanks: 252
Thanked 405 Times in 238 Posts
Default

The issue is that when the camera takes pictures, it doesn't properly record the "date and time taken" in the picture's EXIF metadata. So, when sorting the photos on a computer, there is no way to "sort by date".
__________________
I am the creator of the PalmSpot entry “webOS Does, and Does, and Does Some More”, writes Save/Restore scripts and helps manage the script feed, and now writes PreCentral's Tip of the Day

Got a good tip for PreCentral's Tip of the Day? Please send me a PM or use the Contact Us form and select "Suggest a tip"

Like any of my work:
Audemars02 is offline   Reply With Quote
Old 12/14/2010, 03:46 PM   #9 (permalink)
Member
 
quini's Avatar
 
Join Date: Dec 2009
Location: Ibiza
Posts: 128
Likes Received: 0
Thanks: 44
Thanked 15 Times in 14 Posts
Default

Quote:
Originally Posted by Audemars02 View Post
any way to package this up as an ondevice app?
The package containing the exiftool utility is free software:

"This is free software; you can redistribute it and/or modify it under the same terms as Perl itself"

so it probably could be ported... but I'm sorry I'm not a programmer 8-(
quini is offline   Reply With Quote
Old 12/14/2010, 03:49 PM   #10 (permalink)
Moderator
 
Cantaffordit's Avatar
 
Join Date: Jan 2010
Posts: 15,150
Likes Received: 958
Thanks: 3,804
Thanked 3,911 Times in 2,777 Posts
Default

Quote:
Originally Posted by Audemars02 View Post
The issue is that when the camera takes pictures, it doesn't properly record the "date and time taken" in the picture's EXIF metadata. So, when sorting the photos on a computer, there is no way to "sort by date".
and do the camera patches in preware not help with this?
Cantaffordit is offline   Reply With Quote
Old 12/14/2010, 04:44 PM   #11 (permalink)
Member
 
sketch42's Avatar
 
Join Date: Jan 2007
Location: in the dark recesses of the earth, awaiting "The Rise of the L@@T"
Posts: 3,991
Likes Received: 184
Thanks: 2,996
Thanked 1,967 Times in 1,402 Posts
Default

Quote:
Originally Posted by korky99_04 View Post
As noted elsewhere on the web, the Pre's camera stores the date in the EXIF metadata as "modify date" but not as "date taken". Meaning that the information is there, just not in the correct field so therefore programs [such as photoshop, windows, photobucket, flicker, etc] don't know to look for it. Also, it is worth noting that my wife's Pixi DOES store the "date taken" information appropriately.

The reason this matters, is when I download the photos to my computer and try to sort by date, it won't be able to do that because the date and time information isn't encoded correctly into the metadata. Yes, you can sort by title, but for example when my wife and I go on vacation and then combine our photos into one folder we cannot sort by date taken. Her's sorts by date taken, but mine will not because the information isn't there.

If you have a EXIF editing program such as Exifer you can copy it over. But a patch would be much cleaner.

A successful patch for this problem would, when a photo is taken, store the information that is currently being stored as the EXIF field "modify date" in the EXIF field "date taken" as well. This is only required on the Pre, as the Pixi already does so. Thereby allowing many third party programs to have access to that information as well.

I know the Pre is capable of doing this since it stores other metadata such as gps coordinates, and since the Pixi does it. Due to all of this, I would think it would be a fairly quick and easy patch to make. Of course, I really don't know what I'm talking about...
what vers pre and pixi.. i just compared all the cam files i could find on both a sprint pre and a att pixi plus.. and they are the same..
__________________
NEWBIES Check These Threads First
WebOS FAQExport ContactsBackup-Restore Patches/Apps


follow me on twitteror Catch me at LOOT

ATTN: If You like my Patches or Themes please feel free to DONATE
sketch42 is offline   Reply With Quote
Old 12/14/2010, 04:54 PM   #12 (permalink)
Member
 
Unclevanya's Avatar
 
Join Date: Aug 2010
Location: Charlotte, NC
Posts: 1,483
Likes Received: 27
Thanks: 322
Thanked 203 Times in 168 Posts
Default

Quote:
Originally Posted by Cantaffordit View Post
and do the camera patches in preware not help with this?
I will check myself. I have a Pre Plus with the better naming option patch (forget which one) but while that fixes the names to something easily sorted I don't know if it fixes the metadata.
Unclevanya is offline   Reply With Quote
Thanked By: Cantaffordit
Old 12/14/2010, 07:28 PM   #13 (permalink)
Member
 
Join Date: Nov 2003
Location: New Jersey
Posts: 306
Likes Received: 0
Thanks: 30
Thanked 24 Times in 12 Posts
Default

Can someone post up a Pixi photo sample? I'm taking a look at the code right now.
tc600 is offline   Reply With Quote
Old 12/14/2010, 09:03 PM   #14 (permalink)
Member
 
appsotutely's Avatar
 
Join Date: Aug 2010
Posts: 628
Likes Received: 22
Thanks: 80
Thanked 153 Times in 122 Posts
Default

I went to Flickr for some samples and it looks like the Pre is writing the DateTime field (x0132), but the Pixi is writing the DateTimeOriginal (x9003) and DateTimeDigitized (x9004) fields. I tried changing the DateTime to write to '9003' in place of '0132' in the "camera_defines.js" file, but that didn't seem to do the trick so far.
__________________
Appsotutely's Apps & Patches:
Paid: Slide RSS | Multi Pane | Trip Traq BART | Wall Switch | Slide Master
Free: Pane Free | Trip Traq HBLR | Nightstand
Twitter: @appsotutely
Paypal: Tip Jar
appsotutely is offline   Reply With Quote
Old 12/15/2010, 11:03 AM   #15 (permalink)
Member
 
Unclevanya's Avatar
 
Join Date: Aug 2010
Location: Charlotte, NC
Posts: 1,483
Likes Received: 27
Thanks: 322
Thanked 203 Times in 168 Posts
Default

What is a good tool to look at this data?

Here's a picture that I took after the better naming patch was applied.
Attached Images
File Type: jpg PRE_2010-10-22-143713.jpg (321.6 KB, 7 views) Email Attachment
Unclevanya is offline   Reply With Quote
Old 12/15/2010, 11:16 AM   #16 (permalink)
Member
 
sketch42's Avatar
 
Join Date: Jan 2007
Location: in the dark recesses of the earth, awaiting "The Rise of the L@@T"
Posts: 3,991
Likes Received: 184
Thanks: 2,996
Thanked 1,967 Times in 1,402 Posts
Default

Quote:
Originally Posted by appsotutely View Post
I went to Flickr for some samples and it looks like the Pre is writing the DateTime field (x0132), but the Pixi is writing the DateTimeOriginal (x9003) and DateTimeDigitized (x9004) fields. I tried changing the DateTime to write to '9003' in place of '0132' in the "camera_defines.js" file, but that didn't seem to do the trick so far.
what about swapping the camera app
__________________
NEWBIES Check These Threads First
WebOS FAQExport ContactsBackup-Restore Patches/Apps


follow me on twitteror Catch me at LOOT

ATTN: If You like my Patches or Themes please feel free to DONATE
sketch42 is offline   Reply With Quote
Old 12/15/2010, 11:25 AM   #17 (permalink)
Member
 
Unclevanya's Avatar
 
Join Date: Aug 2010
Location: Charlotte, NC
Posts: 1,483
Likes Received: 27
Thanks: 322
Thanked 203 Times in 168 Posts
Default

Quote:
Originally Posted by sketch42 View Post
what about swapping the camera app
Are the API's available for that?
Unclevanya is offline   Reply With Quote
Old 12/15/2010, 07:32 PM   #18 (permalink)
Member
 
sketch42's Avatar
 
Join Date: Jan 2007
Location: in the dark recesses of the earth, awaiting "The Rise of the L@@T"
Posts: 3,991
Likes Received: 184
Thanks: 2,996
Thanked 1,967 Times in 1,402 Posts
Default

Quote:
Originally Posted by Unclevanya View Post
Are the API's available for that?
I mean pixi camera app being swapped into the pre
__________________
NEWBIES Check These Threads First
WebOS FAQExport ContactsBackup-Restore Patches/Apps


follow me on twitteror Catch me at LOOT

ATTN: If You like my Patches or Themes please feel free to DONATE
sketch42 is offline   Reply With Quote
Reply

 

Tags
camera, date taken, patch

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0