Page 1 of 1

Problem 'base path' and force 'update catalog from files'

Posted: Fri Dec 08, 2023 3:00 pm
by OnkelTom
Dear Pierre, dear users, today I would like to seek assistance with the function 'base path of your pictures' in combination with the function 'update catalog from files' in the view-menu.

I started with a freshly unpacked v1.6.1, 64bit from portableapps (whereas the same happens within my installed version, which is a v1.6.2, 64bit). For the installed version, I removed (backed up) my databases (Thumbs.db and XnView.db) and even started with a fresh xnview.ini

I set a base bath for my pictures and start browsing, which works just fine and leads to the following view:
1.jpg
1.jpg (19.01 KiB) Viewed 2903 times
The xnview.db opened with e.g the SQLite-Database browser also looks as expected - fine:
2.jpg
2.jpg (17.09 KiB) Viewed 2903 times

As I often add/change/delete/amend the e.g. xmp-dc:subject, I need to update the files, already in the catalog.
I do this via the view-menu with 'update catalog from files'.
4.jpg
4.jpg (19.7 KiB) Viewed 2903 times
Now the problem - this leads to the following view of the catalog:
3.jpg
3.jpg (14.62 KiB) Viewed 2903 times
The database looks like this:
5.jpg
5.jpg (17.81 KiB) Viewed 2903 times
So it seems, that the 'forced update' does not respect/consider the set 'base path of your pictures'.
Is it a :bug: or am I missunderstanding anything or am I 'doing it wrong'

I appreciate any assistance / support / recommendation, how to deal with the above effect.

Thank you!

Re: Problem 'base path' and force 'update catalog from files'

Posted: Wed Dec 13, 2023 3:55 pm
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: Problem 'base path' and force 'update catalog from files'

Posted: Thu Dec 14, 2023 6:12 pm
by OnkelTom
Thank you for the feedback, Pierre!

Would also like to say THANK YOU for your efforts and the really superb piece of software and your efforts, maintaining it!

Re: Problem 'base path' and force 'update catalog from files'

Posted: Tue Jan 09, 2024 9:57 am
by xnview
This problem is supposed to be fixed in XnView MP 1.6.4. Please check and confirm the bug fix here.

Re: Problem 'base path' and force 'update catalog from files'

Posted: Sun Feb 11, 2024 6:34 am
by OnkelTom
Dear Pierre, the bug seems to be fixed. I tested it with 4...5 folders, after adjusting the base path and altering the database.
Thank you!

Re: Problem 'base path' and force 'update catalog from files'

Posted: Sun Feb 18, 2024 9:32 am
by OnkelTom
Dear Pierre, need to re-open this issue again and would like to request your support, once again, please.

After the incorporated changes from you, now I cannot export XMP data to files in the base-path.
It works well and as expected on different path's (other than basePath, e.g. "C:\")

Background / Pre-requisite:
I have my files on a NAS, under drive "X:\", e.g. "X:\2020\2020-01-01 (New Year)" or "X:\2021\2021-06-09 (Birthday Mum)" and so on. As previously explained, I use the built-in functions cmd_updateFiles and cmd_updateDB quite a lot, for which I have created individual buttons as well.

What I have done, after you made adjustments to the code:
  • Modify the XnView.db in the way, to replace all occurencies of "X:/" by "@" (with SQLite Database browser)
  • then modify XnView.ini paragraph basePath= from "/" to "X:/"
  • restart XnViewMP
What does not work:
The function cmd_updateDB does not write any XMP data (e.g. categories) to the file (e.g. xmp-dc:subject or xmp-lr:hierarchicalsubject)

Reversing the above steps, means returning to absolute paths in the database ("X:/" instead of "@") and reversing the basePath to "/" brings back the function cmd_updateFiles and I can write XMP data to the files on "X:\...\...\..." again.

Hope, I made myself clear and that you can find the failure.
If it is a failure or misunderstanding on my side, please let me have your advice.
As usual, I would like to say thanks for looking into this.

Regards, Thomas

Re: Problem 'base path' and force 'update catalog from files'

Posted: Sun Feb 18, 2024 3:13 pm
by xnview
OnkelTom wrote: Sun Feb 18, 2024 9:32 am cmd_updateFiles
What does not work:
The function cmd_updateDB does not write any XMP data (e.g. categories) to the file (e.g. xmp-dc:subject or xmp-lr:hierarchicalsubject)
you means cmd_updateFiles?

Re: Problem 'base path' and force 'update catalog from files'

Posted: Sun Feb 18, 2024 5:53 pm
by OnkelTom
Yes, of course. Used the wrong wording. Meant "cmdupdate_Files". My bad. Sorry.

Re: Problem 'base path' and force 'update catalog from files'

Posted: Mon Feb 19, 2024 9:26 am
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: Problem 'base path' and force 'update catalog from files'

Posted: Thu Feb 22, 2024 2:39 pm
by xnview
This problem is supposed to be fixed in XnView MP 1.6.5. Please check and confirm the bug fix here.