EXIF data in image properties is not updated after cleaning metadata

*** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: xnview, Dreamer

teslasystems
Posts: 12
Joined: Thu Mar 13, 2025 3:09 am

EXIF data in image properties is not updated after cleaning metadata

Post by teslasystems »

XnView MP 1.10.5 64-bit on Windows 11.

Reproduce steps:
1. Open some image that contains EXIF data
2. In main menu choose Metadata->Clean metadata...
3. Ensure all checkboxes are selected, confirm by clicking OK
4. Save image
5. Right click on image->Properties, go to EXIF tab
6. All data are still here and not removed

Switching to next/previous image and back doesn't help. You need to restart the app to see that the data was removed. ExifTool tab is updated btw, the problem is only with EXIF tab.

Please fix. It leads to confusion when you check the tab to confirm that the data was removed.
jkm
Posts: 679
Joined: Sat May 11, 2024 12:43 am

Re: EXIF data in image properties is not updated after cleaning metadata

Post by jkm »

I agree, this is poor behavior.

It's actually worse than you realize. If sidecar files are turned on, data is not removed from the sidecar file at all. That's a second problem, and it leads to a third problem...

You do not actually have to restart the app for the metadata changes to be recognized. If you do a Metadata->Update Catalog from files, the database (and thus the EXIF tab) will then show the refreshed data. But because the metadata was not removed from the XMP sidecar file, that metadata is re-imported into the database when Update Catalog from Files is performed. That's the third problem; the deleted metadata is effectively undeleted.

Unfortunately, this is another aspect of a longstanding problem, where certain metadata editing activities (like Edit XMP, Edit IPTC) do not force updates to the database, which then requires the user to manually "Update Catalog from Files". So that's a known issue.
User avatar
xnview
Author of XnView
Posts: 48267
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: EXIF data in image properties is not updated after cleaning metadata

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
User avatar
xnview
Author of XnView
Posts: 48267
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: EXIF data in image properties is not updated after cleaning metadata

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.11.4. Please check and confirm the bug fix here.
jkm
Posts: 679
Joined: Sat May 11, 2024 12:43 am

Re: EXIF data in image properties is not updated after cleaning metadata

Post by jkm »

This issue is only partially fixed.

When doing "Clean Metadata" on a standalone file (no sidecar) the issue is corrected and things work as they should.

But things are still not handled properly when sidecar files are enabled and present.
teslasystems
Posts: 12
Joined: Thu Mar 13, 2025 3:09 am

Re: EXIF data in image properties is not updated after cleaning metadata

Post by teslasystems »

xnview wrote: Fri Jun 26, 2026 9:26 am This problem is supposed to be fixed in XnView MP 1.11.4. Please check and confirm the bug fix here.
Well, it's fixed, but something is wrong.
If I clear the metadata and then open Properties, EXIF tab is completely empty:
1.png
But if I close and reopen the same file, it has some data about image:
2.png
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 48267
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: EXIF data in image properties is not updated after cleaning metadata

Post by xnview »

yes i you have the embedded thumbnail written
teslasystems
Posts: 12
Joined: Thu Mar 13, 2025 3:09 am

Re: EXIF data in image properties is not updated after cleaning metadata

Post by teslasystems »

xnview wrote: Sun Jun 28, 2026 7:37 am yes i you have the embedded thumbnail written
Ok, but in this case, if some data is not removed, it should be displayed. As I said, after cleaning EXIF, the tab is completely empty, but after reopening the file, there is thumbnail information. So, the problem is that the tab doesn't display actual data.
User avatar
xnview
Author of XnView
Posts: 48267
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: EXIF data in image properties is not updated after cleaning metadata

Post by xnview »

settings>Write>Jpeg - rebuild embedded EXIF thumbnail
teslasystems
Posts: 12
Joined: Thu Mar 13, 2025 3:09 am

Re: EXIF data in image properties is not updated after cleaning metadata

Post by teslasystems »

xnview wrote: Sun Jun 28, 2026 12:54 pm settings>Write>Jpeg - rebuild embedded EXIF thumbnail
Checked
User avatar
xnview
Author of XnView
Posts: 48267
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: EXIF data in image properties is not updated after cleaning metadata

Post by xnview »

teslasystems wrote: Sun Jun 28, 2026 12:56 pm
xnview wrote: Sun Jun 28, 2026 12:54 pm settings>Write>Jpeg - rebuild embedded EXIF thumbnail
Checked
so exif rewritten