Page 1 of 1

Captions not updating

Posted: 27 Jun 2024, 20:03
by trey
Hi, I've noticed that if I update the caption on a photo, the update is not reflected on my site when the image displays.

if I add a caption to a photo that doesn't have one, it will display, but then if I change it the old caption will display when the image loads.

I can confirm that the image files on the server have the correct caption in IPTC/caption.

Re: Captions not updating

Posted: 27 Jun 2024, 22:20
by mjau-mjau
trey wrote: Hi, I've noticed that if I update the caption on a photo, the update is not reflected on my site when the image displays.
May I ask how you are updating the caption? I guess you are uploading a new photo, with updated IPTC captions, overwriting the old image with the same name? This might cause some issues ... I recommend trying this:
  1. Before uploading images with updated captions, DELETE the images that you intend to overwrite, from the X3 panel interface.
  2. As a precaution, after delete, click SAVE for the folder, even if you didn't make changes.
  3. Then proceed to upload images with new captions, in place of the deleted images.

Re: Captions not updating

Posted: 28 Jun 2024, 18:08
by trey
mjau-mjau wrote:
trey wrote: Hi, I've noticed that if I update the caption on a photo, the update is not reflected on my site when the image displays.
May I ask how you are updating the caption? I guess you are uploading a new photo, with updated IPTC captions, overwriting the old image with the same name? This might cause some issues ... I recommend trying this:
  1. Before uploading images with updated captions, DELETE the images that you intend to overwrite, from the X3 panel interface.
  2. As a precaution, after delete, click SAVE for the folder, even if you didn't make changes.
  3. Then proceed to upload images with new captions, in place of the deleted images.
Thanks Karl, that worked, though it might get a bit tedious if I had to do that every time I made a metadata change.

I'm using JF Collection Publisher in Lightroom Classic to create the galleries, and it's set to publish straight to my website storage, which is mounted locally with Mountain Duck. This way if I make a change to a photo I can just republish it and it's immediately online.

The caption is being updated in Lightroom Classic. After publishing, I'm able to navigate to the website storage via Bridge and verify that the photo that's online has the updated caption, but it's still displays the old one on the page.

Re: Captions not updating

Posted: 28 Jun 2024, 22:10
by mjau-mjau
There are a couple of things going on here, and two possible causes, which might even be layered.
trey wrote:and it's set to publish straight to my website storage, which is mounted locally with Mountain Duck
So just keep in mind, when you "publish" anything to X3 outside of the X3 control panel, X3 may still use OLD cache data, because it doesn't know that you have made any changes. Therefore, after updating images outside of X3, you would still need to go to the X3 control panel and click "save", just to make sure the page cache is invalidated and updated on next page load.

So basically, the above might resolve your issue. You need to invalidate cache, because just updating images into the disk won't clear X3's cache.

---
However, there is another potential issue at play here, which may or may not be related. When you upload images with IPTC captions into X3, and then when you click "save" in the page, the captions will get get copied into X3's own page.json in the folder. This is because users may edit captions from the X3 interface, and we can't assume we can move this data back into the JPG IPTC on save. Therefore, for one and the same imagename.jpg, you might have caption stored from the original image, which then does not get automatically updated from a new image's IPTC data that you have copied over outside of the X3 control panel. Therefore, deleting the file first from the X3 panel, is the only way to flush old data first. You would somehow need to clear references to the images from the folders page.json before uploading and replacing with new images.

The above would only happen if you first SAVE the page while images exist, and then you update those images later.

For starters, you could go to Settings > Advanced > DISABLE "Store image settings in image as IPTC". At least old data from page.json would not get written back into your images on page save.

Re: Captions not updating

Posted: 01 Jul 2024, 22:53
by trey
I'm pretty good about hitting save so I think it's your second scenario. I'll disable the store image settings setting and see how it goes.

Thanks for your help!