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


Permlink Replies: 7 - Pages: 1 - Last Post: 28 Jun 22, 23:50 Last Post By: RobM
justinhow

Posts: 48
Registered: 3-Apr-2020
jAlbum script to write out comments to jpg files
Posted: 27 Jun 22, 14:53
 
  Click to reply to this thread Reply
Can anyone help me in finding or writing a jAlbum script that would write out the comments in jAlbum (held in its JSON files I beleive) and write them out to the jpg file in the EXIF/IPTC fields.
The reason is that I am using Luminar AI to edit photos and have recently found out that it appears to remove some existing EXIF/IPTC data from the jpg files which is a bit crap!
Any help would be greatly appreciated.
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: jAlbum script to write out comments to jpg files
Posted: 27 Jun 22, 15:36   in response to: justinhow in response to: justinhow
 
  Click to reply to this thread Reply
If you look in the Luminar (Skylum) forum there have been lots of posts on lost metadata, it is worth checking with their support people.
justinhow

Posts: 48
Registered: 3-Apr-2020
Re: jAlbum script to write out comments to jpg files
Posted: 27 Jun 22, 15:39   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
I have logged a support issue and sent them file examples of the issue. So we will see if they are able to fix it at all.
Will check Skylum forum as you suggest.
JeffTucker

Posts: 8,039
Registered: 31-Jan-2006
Re: jAlbum script to write out comments to jpg files
Posted: 27 Jun 22, 17:30   in response to: justinhow in response to: justinhow
 
  Click to reply to this thread Reply
I've cleared out all of the confused discussion that was here, most of it based on misunderstandings about what, exactly, the problem is.

To summarize:

  • justinhow has jAlbum set to link to images that are added to a project, rather than copying them.
  • He added comments in jAlbum, and jAlbum copied those comments to the xmp.dc:description[1] field in the original images. So far, so good.
  • He later edited the original images.
  • His photo editor, alas, wiped out the XMP descriptions in the original images, which are needed for applications other than jAlbum.
  • The comments are still present in the jAlbum projects, stored in their usual comments.properties location.

So, the question is how to induce jAlbum to write the XMP descriptions back to the original image files. The EXIF and IPTC fields are not involved at all.

We then come to RobM's excellent tool, which appears to solve the problem....

Edited by: JeffTucker on 27 Jun 2022, 15:53
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: jAlbum script to write out comments to jpg files
Posted: 27 Jun 22, 20:23   in response to: justinhow in response to: justinhow
 
  Click to reply to this thread Reply
Attachment jAlbum2XMP.bsh (1.5 KB)
The attached file will loop through a project looking for images that have no xmp title or description but do have jAlbum title or comment entries. It will then set the xmp.dc:title[1] to jAlbum's title and/or the xmp.dc:description[1] to jAlbum's comment. It will not touch images with no jAlbum data or those with xmp data already in the.

It could easily be updated to add keywords to the xmp data and limited to selected items.

Try it on a small test project.

Edited by: RobM on 27 Jun 2022, 19:51
Made a change so that it only ever checks image files.
Modified version of David's 'Strip xmp title from files' tool
justinhow

Posts: 48
Registered: 3-Apr-2020
Re: jAlbum script to write out comments to jpg files
Posted: 28 Jun 22, 11:48   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Testing seems to have gone fine on my test project
Thanks again for the really great support from the forum and team

PS The fault with Luminar AI also applies to Luminar NEO - their latest photo editor. Its a shame as I like its easy UI and power, but I will stop using them. As said earlier in the thread, this seems to be a known issue.
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: jAlbum script to write out comments to jpg files
Posted: 28 Jun 22, 11:51   in response to: justinhow in response to: justinhow
 
  Click to reply to this thread Reply
justinhow wrote:
Testing seems to have gone fine on my test project
Thanks again for the really great support from the forum and team

PS The fault with Luminar AI also applies to Luminar NEO - their latest photo editor. Its a shame as I like its easy UI and power, but I will stop using them. As said earlier in the thread, this seems to be a known issue.

I used to use Luminar but switched to ON1.
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: jAlbum script to write out comments to jpg files
Posted: 28 Jun 22, 23:50   in response to: justinhow in response to: justinhow
Helpful
  Click to reply to this thread Reply
I have just released a more versatile version, see new post in jAlbum external tools forum

It lets you select the range of images to process: the project, the current folder and subfolders, the current folder or selected images. It also now includes keywords.
Legend
Forum admins
Helpful Answer
Correct Answer

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