This question is answered.


Permlink Replies: 8 - Pages: 1 - Last Post: 18 Jul 21, 17:02 Last Post By: RobM
JeffTucker

Posts: 8,384
Registered: 31-Jan-2006
How to use getRealCameraDate()
Posted: 18 Jul 21, 13:52
 
  Click to reply to this thread Reply
Simple question: how can I use getRealCameraDate() to retrieve the camera date, or zero if there isn't one, from the currentObject?
RobM

Posts: 3,946
Registered: 4-Aug-2006
Re: How to use getRealCameraDate()
Posted: 18 Jul 21, 14:49   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
Simple question: how can I use getRealCameraDate() to retrieve the camera date, or zero if there isn't one, from the currentObject?
I take it you have tried using AlbumObjectMetadata
I’ll be able to get to my Mac in an hour or so and have a play, if I’m still awake after Sunday lunch. :)
JeffTucker

Posts: 8,384
Registered: 31-Jan-2006
Re: How to use getRealCameraDate()
Posted: 18 Jul 21, 15:03   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
I take it you have tried using AlbumObjectMetadata

Every permutation and combination I can think of. Crash after crash after crash....

ETA: I did stumble on one formulation that didn't crash! But it returned zero for every object. :(
RobM

Posts: 3,946
Registered: 4-Aug-2006
Re: How to use getRealCameraDate()
Posted: 18 Jul 21, 16:07   in response to: JeffTucker in response to: JeffTucker
Correct
  Click to reply to this thread Reply
It helps if you don't know the rules, then you are free to try things like
aoM = AlbumObjectMetadata.getInstance(currentObject.getFile());
System.out.println(aoM.getRealCameraDate());
RobM

Posts: 3,946
Registered: 4-Aug-2006
Re: How to use getRealCameraDate()
Posted: 18 Jul 21, 16:11   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Using the Sample Project, the above returns 0 for every image. Adding one of my own images though returns 1471264963000
JeffTucker

Posts: 8,384
Registered: 31-Jan-2006
Re: How to use getRealCameraDate()
Posted: 18 Jul 21, 16:32   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Oh, I was sooooo close! I'd gotten as far as AlbumObjectMetadata.getInstance(), but fumbled the currentObject.getFile(). ;)

The images in the sample portfolio are all royalty-free images, with little or no metadata, so they're a terrible collection for testing stuff like this.
RobM

Posts: 3,946
Registered: 4-Aug-2006
Re: How to use getRealCameraDate()
Posted: 18 Jul 21, 16:35   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
Oh, I was sooooo close! I'd gotten as far as AlbumObjectMetadata.getInstance(), but fumbled the currentObject.getFile(). ;)
Old age and short sightedness are probably to blame, I think I have about a six month advantage ;)
JeffTucker

Posts: 8,384
Registered: 31-Jan-2006
Re: How to use getRealCameraDate()
Posted: 18 Jul 21, 16:54   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
September 1952. Offhand, I'd say I've got no more than one or two productive years left in me.

And my eyeglass prescription is very heavy on the "plus diopters" side. If I put down my glasses on a granite countertop with a bold pattern, I have trouble finding them again. ;)

On the other hand, I've plunged into replacing my skin's nav icons with hand-crafted SVG's. Starting with PNG's and using an online converter to get the SVG's produces bloated rough estimations, at best. I've gotten some good pointers from jimberry. He makes me feel like a kid, since he's almost old enough to be my father.

I've come up with a new marketing slogan: jAlbum - The App for Old Guys. We just need to get David to admit that he, too, is now over the hill.
RobM

Posts: 3,946
Registered: 4-Aug-2006
Re: How to use getRealCameraDate()
Posted: 18 Jul 21, 17:02   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
I have added the code to the Code snippets page
If all else fails, at least I can remember that page has all sorts of odd stuff in it.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums