This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Pages: 1 - Last Post: 19 Jul 21, 15:46 Last Post By: davidekholm Threads: [ Previous | Next ]
JeffTucker

Posts: 8,245
Registered: 31-Jan-2006
A couple of new methods
Posted: 15 Jul 21, 23:16
 
  Click to reply to this thread Reply
From the release notes:

JAlbumUtilities.getCameraDates now no longer falls back to file dates.

Suggested additions:

getCameraDates​(AlbumObject folder, boolean useFileDate)

getDeepCameraDates​(AlbumObject folder, boolean useFileDate)
davidekholm

Posts: 3,492
Registered: 18-Oct-2002
Re: A couple of new methods
Posted: 17 Jul 21, 10:47   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
I'll consider it. It takes a bit more thinking to implement this as we're dealing with cached data. Retrieving the ordinary file dates is quick so I hope to only cache true camera dates. I might need to cache both camera dates and file dates as one cannot know if the camera date is missing until one has tried to read the EXIF data (i.e. a slow operation)
JeffTucker

Posts: 8,245
Registered: 31-Jan-2006
Re: A couple of new methods
Posted: 17 Jul 21, 12:43   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Upon reflection, do this only if it's easy, and only if Laza wants it.

In my skins, I'm using this logic only to determine "newness," not to retrieve a range of dates. I.e., is there something in this folder that's less than X days old. In most cases, using the "added to the project" date makes the most sense, and that's what I default to. Someone who chooses the camera date, instead, isn't likely to be adding material that has no camera date. If he is, he might as well just use the added date, and be done with it. I think I might remove the "file date instead" option from my skins. I can't really think of a good use case for it.

Someone who wants to retrieve the camera date range (used in Laza's skins) can easily take care of the "no camera date" condition. Just find the oldest object and use something like ExifTool to plant a camera date on it. No need to take care of all the others - just putting a date on the oldest one is sufficient.
davidekholm

Posts: 3,492
Registered: 18-Oct-2002
Re: A couple of new methods
Posted: 19 Jul 21, 15:46   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
There's always JAlbumUtilities.deepLastModified if you simply want to find the last camera date under a folder tree. I'll keep this modification for now. Laza is happy with it.
Legend
Forum admins
Helpful Answer
Correct Answer

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