|
Replies:
36
-
Pages:
3
[
1
2
3
| Next
]
-
Last Post:
30 Oct 23, 10:11
Last Post By: davidekholm
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
7,941
Registered:
31-Jan-2006
|
|
|
Missing originalDate
Posted:
23 Oct 23, 16:43
|
|
|
Not sure when this started malfunctioning, but the core is no longer providing the originalDate variable for an image.
ETA: Working correctly in jAlbum 32.1.3.
|
|
|
Posts:
3,667
Registered:
18-Oct-2002
|
|
|
Re: Missing originalDate
Posted:
23 Oct 23, 17:16
in response to: JeffTucker
|
|
|
Really? I can't reproduce. I added the following to slide.htt of Minimal: originalDate: ${originalDate} <br>
When viewing the final album, it reads originalDate: 2023-09-23 13:38
|
|
|
Posts:
7,941
Registered:
31-Jan-2006
|
|
|
Re: Missing originalDate
Posted:
23 Oct 23, 17:31
in response to: davidekholm
|
|
|
It's failing when I iterate through the objects during index.htt, not slide.htt. I need them at that stage because the metadata get planted in a hidden <div> on the index page. There are no slide pages.
Try planting a call to ${originalDate} in Minimal's index.htt, within the fileiterator loop. A similar call for, e.g., ${exposureTime} yields the correct value.
|
|
|
Posts:
7,941
Registered:
31-Jan-2006
|
|
|
Re: Missing originalDate
Posted:
23 Oct 23, 18:15
in response to: JeffTucker
|
|
|
BTW, this also clobbers the routine for marking a thumbnail as "new" based on the camera date (rather than the date added to the project).
|
|
|
Posts:
3,667
Registered:
18-Oct-2002
|
|
|
Re: Missing originalDate
Posted:
24 Oct 23, 11:51
in response to: JeffTucker
|
|
|
|
It "unfortunately" works within a fileiterator in index.htt as well.
I attach a modified "index.htt" (Minimal skin) and a demo project here.
|
|
|
Posts:
7,941
Registered:
31-Jan-2006
|
|
|
Re: Missing originalDate
Posted:
24 Oct 23, 13:40
in response to: JeffTucker
|
|
|
|
|
|
Posts:
7,941
Registered:
31-Jan-2006
|
|
|
Re: Missing originalDate
Posted:
24 Oct 23, 13:43
in response to: JeffTucker
|
|
|
|
Same result with a photo fresh out of my iPhone 14, untouched by any software.
BTW, the little utility I use for renaming the files with the camera date clearly has no trouble getting the original date, as you can see by the file name!
|
|
|
Posts:
7,941
Registered:
31-Jan-2006
|
|
|
Re: Missing originalDate
Posted:
24 Oct 23, 14:51
in response to: JeffTucker
|
|
|
|
And after a fresh relaunch, I added some "marker" text, just to show that the index.htt has, in fact, been modified. This time, no dates at all!
The iterator loop: <ja:fileiterator>
<% caption = getLabel(currentObject); %>
<div class="${fileCategory} <%= (caption.length() > 0)? " has-caption":"no-caption" %>">OD: ${originalDate}<a href="${closeupPath}" title="${title}">
<ja:if exists="iconPath"><img class="noborder" src="${iconPath}" width="${thumbWidth}" height="${thumbHeight}" alt="${title}"></a></ja:if>
<ja:else><ja:picture><img src="${thumbPath}" width="${thumbWidth}" height="${thumbHeight}" alt="${title}"></ja:picture></a></ja:else>
<% if (caption.length() > 0) {
out.print("<div>" + caption + "</div>");
}
%>
</div>
</ja:fileiterator>
|
|
|
Posts:
7,941
Registered:
31-Jan-2006
|
|
|
Re: Missing originalDate
Posted:
24 Oct 23, 14:56
in response to: JeffTucker
|
|
|
|
Another discovery: this works without any problems in jAlbum 33.0.4. It's one of those subsequent core updates that has done the damage. I suspect it's related to those "time zero" images we were discussing earlier - that "fix" has done something ugly.
ETA: the result with 33.0.4
|
|
|
Posts:
3,667
Registered:
18-Oct-2002
|
|
|
Re: Missing originalDate
Posted:
24 Oct 23, 15:49
in response to: JeffTucker
|
|
|
Sounds reasonable, but it works even with my local 33.0.7 here. Please do a core update to it a let me know how it behaves.
|
|
|
Posts:
7,941
Registered:
31-Jan-2006
|
|
|
Re: Missing originalDate
Posted:
24 Oct 23, 16:07
in response to: davidekholm
|
|
|
With 33.0.7, I'm still getting weird, inconsistent results. With your modified Minimal, if I start a new, empty project, and just add your image and make the album, I see no originalDate. And a quick look at the albumfiles.txt (even after closing, shutting down, reopening) shows no cached camera date - only the date added: # This file is created by jAlbum. It sets custom file filtering and ordering for this image directory.
# Files not listed here are added to the end of the album
# Rows beginning with "-" indicate excluded files.
# Rows can have up to 3 tab separated columns according to this scheme:
# File name | Target path (for links) | When added (seconds since epoch)
# Note: The target path can reference files and directories in other locations and thereby
# allows you to compile albums consisting of files from several different locations.
IMG_1401.jpeg 1698156286
|
|
|
Posts:
3,667
Registered:
18-Oct-2002
|
|
|
Re: Missing originalDate
Posted:
24 Oct 23, 16:25
in response to: JeffTucker
|
|
|
Puzzling. Here, I see jAlbum putting the camera dates in the albumfiles.txt file as soon as it's recreated (after a delete + screen refresh for instance), then once the album is made, the "date added" dates are added to albumfiles.txt as well.
|
|
|
Posts:
7,941
Registered:
31-Jan-2006
|
|
|
Re: Missing originalDate
Posted:
24 Oct 23, 16:33
in response to: davidekholm
|
|
|
Starting from a raw, empty project, that's not what I'm seeing. No problem whatsoever in 33.0.4, doing the same test. In fact, it's OK in 33.0.6, too. As soon as the album is made, the camera date is written to albumfiles.txt.
Maybe just back out the "zero time" patch for now - it's a rare case, involving only some very old photos. For me, at least, it's doing much more harm than good, since it's failing with brand new, straight out of the phone images.
|
|
|
Posts:
3,667
Registered:
18-Oct-2002
|
|
|
Re: Missing originalDate
Posted:
24 Oct 23, 17:06
in response to: JeffTucker
|
|
|
I've back-out of it now. Didn't bump the revision number though. Just do a core update. Any change?
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|