Page 1 of 1
1.4.5 - viewer - clean metadata - does not delete gps
Posted: Fri May 19, 2023 6:38 pm
by user0
XnViewMP 1.4.5 64bit
Windows11 (22H2), display resolution 3840x2160, win scaling 150%
Viewer - clean metadata
does not delete GPS
To reproduce:
1. open .jpg with GPS in Viewer
2. open 'Clean metadata...' (View>Clean metadata)
- select GPS only
- press OK
3. press CTRL+S to save image
no GPS data will be deleted

- viewer_clean_metadata_does_not_delete_gps.png (5.08 KiB) Viewed 1350 times
ps: in Browser it works fine.
Related
Re: 1.4.5 - viewer - clean metadata - does not delete gps
Posted: Thu May 25, 2023 1:42 pm
by xnview

Thanks to your detailed description I can reproduce
the problem.
Re: 1.4.5 - viewer - clean metadata - does not delete gps
Posted: Fri Jun 16, 2023 4:06 pm
by xnview
This problem is supposed to be fixed in
XnView MP 1.5.0 beta. Please check and confirm the bug fix here.
Re: 1.4.5 - viewer - clean metadata - does not delete gps
Posted: Sat Jun 17, 2023 5:27 am
by user0
1.5.0 well.. it cleans GPS, however:
- metadata is not affected until image is saved (that is not acceptable for non-loseless formats), also
- image become dirty once OK pressed in dialog
it shall work EXACTLY the same way it works in Browser
it always shall Write, not Apply because this is delete action on existing metadata
(not the case when we have image in buffer+new metadata that can be saved in new format)
ps: for the sake of sanity -
Metadata - unify 'Clean metadata' dialog
Re: 1.4.5 - viewer - clean metadata - does not delete gps
Posted: Sat Jun 17, 2023 7:17 am
by xnview
user0 wrote: Sat Jun 17, 2023 5:27 am
it shall work EXACTLY the same way it works in Browser
it always shall Write, not Apply because this is delete action on existing metadata
(not the case when we have image in buffer+new metadata that can be saved in new format)
I disagree, 'clean metadata' works not only on jpeg but on image datas
Re: 1.4.5 - viewer - clean metadata - does not delete gps
Posted: Sat Jun 17, 2023 3:47 pm
by user0
what "image datas" you mean, file timestamp?
why Viewer's Clean metadata is different from Browser's?
my usecase - I would like to delete all metadata from image (eg jpeg, png, gif, webp) from any place of the app (viewer, browser, batch).
While doing it I would like to keep image data untouched (unresampled/unconverted/etc).
Currently I cannot do it from Viewer as it forces me to manually resave file after cleaning (not saying that it does not clean all metadata), that triggers image resampling for default lossy settings of some formats.
this is how I see it )
where am I wrong?
Re: 1.4.5 - viewer - clean metadata - does not delete gps
Posted: Mon Jun 19, 2023 6:29 am
by xnview
user0 wrote: Sat Jun 17, 2023 3:47 pm
what "image datas" you mean, file timestamp?
why Viewer's Clean metadata is different from Browser's?
It's like 'Edit IPTC/XMP', you change the metadata of loaded picture, not the file.
Re: 1.4.5 - viewer - clean metadata - does not delete gps
Posted: Mon Jun 19, 2023 8:26 pm
by user0
than it shall have the same Write and Apply buttons as Viewer's 'Edit IPTC/XMP'.
hm.. I just noticed that Write in 'Edit IPTC/XMP' makes file dirty.
Imho, it should not, because it pointless nd confusing - if you press "Don't save" new metadata will not gone anyway, its already written into the file.
Re: 1.4.5 - viewer - clean metadata - does not delete gps
Posted: Tue Jun 20, 2023 7:20 am
by xnview
user0 wrote: Mon Jun 19, 2023 8:26 pm
hm.. I just noticed that Write in 'Edit IPTC/XMP' makes file dirty.
Imho, it should not, because it pointless nd confusing - if you press "Don't save" new metadata will not gone anyway, its already written into the file.
I can't reproduce, do you have a way?
Re: 1.4.5 - viewer - clean metadata - does not delete gps
Posted: Tue Jun 20, 2023 7:44 am
by user0
xnview wrote: Tue Jun 20, 2023 7:20 am
user0 wrote: Mon Jun 19, 2023 8:26 pm
hm.. I just noticed that Write in 'Edit IPTC/XMP' makes file dirty.
Imho, it should not, because it pointless nd confusing - if you press "Don't save" new metadata will not gone anyway, its already written into the file.
I can't reproduce, do you have a way?
i will make separate post:
1.5.0 - viewer - metadata - Edit XMP makes file dirty