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


Permlink Replies: 5 - Pages: 1 - Last Post: 24 Jul 25, 01:04 Last Post By: Skwide Threads: [ Previous | Next ]
Skwide

Posts: 11
Registered: 21-Jul-2025
originalDate variable missing?
Posted: 23 Jul 25, 20:02
 
  Click to reply to this thread Reply
Hi folks,

After my last thread, I've managed to crack a lot with metadata. However, this one eludes me:

Photo, imported from Lightroom Classic, contains this metadata related to date of capture (using exiftool under linux):

File Name : 20030708-145253.png
Create Date : 2003:07:08 14:52:53
Date Created : 2003:07:08 14:52:53
Preserved File Name : 2003-07-08-101-0166.jpg
Raw File Name : 20030708-145253.jpg
Date/Time Original : 2003:07:08 14:52:53

This is the file that actually sits in jAlbum's main area (import area, not web export).

With Tiger skin, this is the caption on the full photo page:
================
Rheinfall
Date: [] Time:11:11
================

The template code in Tiger for the Lightbox caption is:
=================================

${comment}
${comment}
Date: ${originalDate} Time:${originalTime}
=================================

No date, and the time is wrong. 11:11 comes from the file modification time.

So it's like jAlbum is ignoring all the capture datestamp fields...
Could this be a setting somewhere?

If I run exiftool on the file that's been written to the web export area, that has been stripped of all capture dates - which I think may be a clue?...

Is there some album or global setting I need to preserve meta data to the web export output?

I have also looked in data1.json in the output directory, and for this file I have:

{
"image": {
"path": "slides\/20030708-145253.png",
"width": 1600,
"height": 1200
},
"creator": "REDACTED",
"keywords": [
"2003-07_Switzerland",
"Albums",
"Holidays"
],
"thumb": {
"path": "thumbs\/20030708-145253.png",
"width": 206,
"height": 206
},
"thumbCaption": "
Switzerland 2003<\/div>
Rheinfall<\/div>",
"rating": 3,
"dates": {
"dateTaken": 1753265499
},
"fileDate": "2025-07-23T11:11:39.817Z",
"title": "Switzerland 2003",
"path": "20030708-145253.png",
"imageCaption": "
Rheinfall<\/div>
Rheinfall<\/div>Date: [] Time:11:11<\/span>",
"fileSize": 5684957,
"rights": "REDACTED (C) 2003",
"name": "20030708-145253.png",
"comment": "Rheinfall",
"category": "image",
"camera": {
"originalDate": "2025-07-23T11:11:39.817Z"
}
},

Many thanks, Tim
JeffTucker

Posts: 8,058
Registered: 31-Jan-2006
Re: originalDate variable missing?
Posted: 23 Jul 25, 22:01   in response to: Skwide in response to: Skwide
 
  Click to reply to this thread Reply
Please give us access to one of the "dateless" images you're feeding to jAlbum. If it's too large as an attachment in the forum, upload it somewhere and give us a link to it.

On the subject of metadata in the output, jAlbum does not, by default, attempt to write out that information in its original format. There are many, many potential problems with doing so. You can override it, but I strongly discourage that. See Settings > Advanced > Metadata > Include photographic data in generated images. The other two boxes, on the other hand, should be checked = Include photographic data in generated pages and Include xmp metadata in generated images.

And therein lies the real answer - when jAlbum extracts metadata, it preserves it in the output, but by using the appropriate xmp fields. This is much more robust and portable.
Skwide

Posts: 11
Registered: 21-Jul-2025
Re: originalDate variable missing?
Posted: 24 Jul 25, 00:31   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Hi Jeff,

Thanks for replying.

I've got it!

I had LR jAlbum Plugin set to convert to PNG (because it seemed like a good idea at the time)
I have set it to "Original" eg simple copy from LR to jAlbum.

The jAlbum web output is now displaying the correct creation date!!!
So it seems jAlbum does not like PNGs...

Of course, "Original" ignores LR edits...

So let's try this again, but send out JPGs...
Yes, that seems to work...

Cheers -

Edited by: Skwide on 24 Jul 2025, 00:41
JeffTucker

Posts: 8,058
Registered: 31-Jan-2006
Re: originalDate variable missing?
Posted: 24 Jul 25, 00:44   in response to: Skwide in response to: Skwide
 
  Click to reply to this thread Reply
Yes, PNG file metadata is very limited, and the metadata extractor used by jAlbum might well choke on the formatting of it. Stick to JPG's! :)
Skwide

Posts: 11
Registered: 21-Jul-2025
Re: originalDate variable missing?
Posted: 24 Jul 25, 00:56   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Technical me said "get that to a lossless format asap lest further shennanigans degrades the quality..."

Perhaps this is something where the LR jAlbum plugin should write out a sidecar file...

Anyway, I have selected max quality JPGs as the transfer medium. Seems to work now.

Thanks again!
Skwide

Posts: 11
Registered: 21-Jul-2025
Re: originalDate variable missing?
Posted: 24 Jul 25, 01:04   in response to: Skwide in response to: Skwide
 
  Click to reply to this thread Reply
Excellent - I have got much of what I wanted..

Sample photo comment:
====================
Ship from Rapperswil to Zürich Bürkliplatz (See) https://en.wikipedia.org/wiki/Stadt_Rapperswil_(ship,_1914)
7 Jul 2003 17:10 | Stäfa | Zürich | Switzerland
====================

Using template:
${comment}
${originalDate} | ${xmp.photoshop:City} | ${xmp.photoshop:State} | ${xmp.photoshop:Country}

The xmp fields are non standard - LR infers these from the GPS coordinates, which is really nice to have on a photo album (OK a full Google Map link is cool too - just got to convince myself that a maps API key will not start billing me unexpectedly!).
Legend
Forum admins
Helpful Answer
Correct Answer

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