1.4.5 - viewer - clean metadata - does not delete gps

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
User avatar
user0
XnThusiast
Posts: 2410
Joined: Sat May 09, 2015 9:37 am

1.4.5 - viewer - clean metadata - does not delete gps

Post 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
viewer_clean_metadata_does_not_delete_gps.png (5.08 KiB) Viewed 1357 times

ps: in Browser it works fine.



Related
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 - viewer - clean metadata - does not delete gps

Post by xnview »

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

Re: 1.4.5 - viewer - clean metadata - does not delete gps

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.5.0 beta. Please check and confirm the bug fix here.
Pierre.
User avatar
user0
XnThusiast
Posts: 2410
Joined: Sat May 09, 2015 9:37 am

Re: 1.4.5 - viewer - clean metadata - does not delete gps

Post 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
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 - viewer - clean metadata - does not delete gps

Post 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
Pierre.
User avatar
user0
XnThusiast
Posts: 2410
Joined: Sat May 09, 2015 9:37 am

Re: 1.4.5 - viewer - clean metadata - does not delete gps

Post 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?
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 - viewer - clean metadata - does not delete gps

Post 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.
Pierre.
User avatar
user0
XnThusiast
Posts: 2410
Joined: Sat May 09, 2015 9:37 am

Re: 1.4.5 - viewer - clean metadata - does not delete gps

Post 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.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 - viewer - clean metadata - does not delete gps

Post 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?
Pierre.
User avatar
user0
XnThusiast
Posts: 2410
Joined: Sat May 09, 2015 9:37 am

Re: 1.4.5 - viewer - clean metadata - does not delete gps

Post 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
Post Reply