Mibu wrote:I am not sure I fully understand the problem. Why isn't it possible to force-refresh / rebuild the JSON file with a button click: read again IPTC info from all images in this folder and update them in JSON?
I'm not saying it's "not possible". I'm saying that this is how X3 was built. For example, lets say after first upload, you have IPTC title "ABC". User then goes to page gallery and edits caption to "ABC DEF", and this of course gets stored in page.json. If they upload a new replacement image with the same name, does it mean they want the edited caption wiped clear? Definitely not necessarily. Even with a "force refresh" button, it doesn't necessarily mean the user wants to wipe all the captions they edited.
Anyway, this is not the point. I understand your issue, but because of how X3 is built, you simply can't EASILY edit IPTC data locally, and keep replacing images with new data, unless you first wipe the data. There is no button for this, maybe there could be, but there is not.
Mibu wrote:What worked for me so far was: (1) delete JSON file (2) delete page cache and then re-upload the images. Unfortunately with this method I am losing the sort oder and page description etc info as well.
It would be sufficient to just delete the JSON file. The page cache is would get refreshed automatically after you upload images from the panel anyway. However, if you delete the page.json file, you will lose the custom sort order, because that is also stored in page.json.
Actually, sort order is also stored inside the image as IPTC (X3 stores inside the image also), but as long as you are deleting page.json AND replacing the uploaded image, then you are also wiping the sort order.
As long as X3 doesn't (and can't) import everything into a database and lock the file system to DB, then these things are not easy.
Mibu wrote:Assuming I would delete all files in a folder, then I press SAVE from the panel. When I then re-upload the images and click again SAVE in the panel: will that re-create the JSON file? If so will the gallery description be preserved, and only sort-order be lost?
Deleting the images won't delete any data stored about the folder, for example gallery description. It will only delete everything stored about the images, including sort order and anything else specific to the images.