0.84: Image's metadata lost when saving

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

0.84: Image's metadata lost when saving

Post by m.Th. »

How to lose your work in few easy steps:

1. Get a JPG (or any other format which supports metadata embedding)
2. In Thumbs Pane press Ctrl+I to bring the IPTC/XMP dialog
3. Enter some text in the Caption field
4. Save
5. Double-click to open the image in a new tab
6. Do any edit (for example Crop - it doesn't matter)
7. Save

8. Close tab & Return to Thumbs pane and press Ctrl+I (WHY should I return to the Thumbs pane in order to see the metadata of the open file???)

Expected: I should see in the Caption field the text entered at step 3.
Actual: Blank! - all data is wiped
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: How to destroy your manually entered image's metadata

Post by xnview »

m.Th. wrote:How to lose your work in few easy steps:

1. Get a JPG (or any other format which supports metadata embedding)
2. In Thumbs Pane press Ctrl+I to bring the IPTC/XMP dialog
3. Enter some text in the Caption field
4. Save
5. Double-click to open the image in a new tab
6. Do any edit (for example Crop - it doesn't matter)
7. Save
I can't reproduce, the caption is always here. Which setting do you have for IPTC/XMP dialog?
8. Close tab & Return to Thumbs pane and press Ctrl+I (WHY should I return to the Thumbs pane in order to see the metadata of the open file???)
What do you mean?
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: How to destroy your manually entered image's metadata

Post by m.Th. »

xnview wrote:
m.Th. wrote:How to lose your work in few easy steps:

1. Get a JPG (or any other format which supports metadata embedding)
2. In Thumbs Pane press Ctrl+I to bring the IPTC/XMP dialog
3. Enter some text in the Caption field
4. Save
5. Double-click to open the image in a new tab
6. Do any edit (for example Crop - it doesn't matter)
7. Save
I can't reproduce, the caption is always here. Which setting do you have for IPTC/XMP dialog?
8. Close tab & Return to Thumbs pane and press Ctrl+I (WHY should I return to the Thumbs pane in order to see the metadata of the open file???)
What do you mean?
Did you receive my movie by PM? :)
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: How to destroy your manually entered image's metad

Post by helmut »

I can't reproduce the problem either: After croppinig and saving the IPTC data (Caption, caption writer, ...) is still there. (correct).

@Pierre: What is the status of this problem?
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: 0.84: How to destroy your manually entered image's metad

Post by m.Th. »

The current status: DANGEROUS (I think)

The „bug” is controlled by JPEG Write Settings. To find them, double click on an image and go to File | Format Settings | Write | JPEG

Here you have 3 checkboxes at the bottom: Keep EXIF, IPTC, XMP. Check all of them.

I don't remember now how it is by default, but if these are Disabled then the problem persists. It is rather a wrong choice for the default settings.


8. Close tab & Return to Thumbs pane and press Ctrl+I (WHY should I return to the Thumbs pane in order to see the metadata of the open file???)
What do you mean?
http://newsgroup.xnview.com/viewtopic.php?f=60&t=34630
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: How to destroy your manually entered image's metad

Post by helmut »

Thank you for these details that allowed to reproduce the problem, m.Th..
m.Th. wrote:The „bug” is controlled by JPEG Write Settings. To find them, double click on an image and go to File | Format Settings | Write | JPEG

Here you have 3 checkboxes at the bottom: Keep EXIF, IPTC, XMP. Check all of them.

I don't remember now how it is by default, but if these are Disabled then the problem persists. ...
By default, all three checkboxes "Keep EXIF", "Keep IPTC", and "Keep XMP" are checked.

Possible measurements to avoid such problems:
- "Format settings" should be integrated into the save dialog using a "Settings" or "Options" button. This will improve the workflow and the user might remember that he/she might need to modify these settings when saving. (Someone has requested this before but I couldn't find it.)
- "Format settings" should be part of the settings. (Currently one can only change the format settings in Viewer).
cday
XnThusiast
Posts: 4397
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: 0.84: How to destroy your manually entered image's metad

Post by cday »

helmut wrote: - "Format settings" should be integrated into the save dialog using a "Settings" or "Options" button. This will improve the workflow and the user might remember that he/she might need to modify these settings when saving. (Someone has requested this before but I couldn't find it.)
+1

But Pierre has indicated that that (a normal feature in software in general) currently can't be implemented in 'MP due to Qt limitations... :(

It is one of two issues (the other related to access to some basic print settings) that can't currently be implemented as far as I'm aware for that reason, a possible subject for an update from Pierre?
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: 0.84: How to destroy your manually entered image's metad

Post by m.Th. »

But Pierre has indicated that that (a normal feature in software in general) currently can't be implemented in 'MP due to Qt limitations...
shocked-eyes-smiley-emoticon.gif
shocked-eyes-smiley-emoticon.gif (20.77 KiB) Viewed 795 times
At least two buttons [Write Settings] [Read Settings] in Tools | Settings | Formats which will open the Viewers' dialogs discussed above.
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: How to destroy your manually entered image's metad

Post by helmut »

m.Th. wrote:... At least two buttons [Write Settings] [Read Settings] in Tools | Settings | Formats which will open the Viewers' dialogs discussed above.
Adding new tabs "Format" to Settings dialog should be feasable and no problem. If I understood Pierre right, placing buttons on standard dialogs is a problem in Qt.
cday
XnThusiast
Posts: 4397
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: 0.84: How to destroy your manually entered image's metad

Post by cday »

helmut wrote:
m.Th. wrote:... At least two buttons [Write Settings] [Read Settings] in Tools | Settings | Formats which will open the Viewers' dialogs discussed above.
Adding new tabs "Format" to Settings dialog should be feasable and no problem. If I understood Pierre right, placing buttons on standard dialogs is a problem in Qt.
Yes, it was suggested before that save settings would be better located in Tools > Options than as at present in the File menu, but where access to save settings is really needed is in the Save dialog, as in XnView Classic and other programs...
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: 0.84: How to destroy your manually entered image's metad

Post by m.Th. »

helmut wrote:
m.Th. wrote:... At least two buttons [Write Settings] [Read Settings] in Tools | Settings | Formats which will open the Viewers' dialogs discussed above.
Adding new tabs "Format" to Settings dialog should be feasable and no problem. If I understood Pierre right, placing buttons on standard dialogs is a problem in Qt.
There is already such a section. Just add some buttons there to show up these windows...
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: 0.84: How to destroy your manually entered image's metad

Post by m.Th. »

cday wrote:
helmut wrote:
m.Th. wrote:... At least two buttons [Write Settings] [Read Settings] in Tools | Settings | Formats which will open the Viewers' dialogs discussed above.
Adding new tabs "Format" to Settings dialog should be feasable and no problem. If I understood Pierre right, placing buttons on standard dialogs is a problem in Qt.
Yes, it was suggested before that save settings would be better located in Tools > Options than as at present in the File menu, but where access to save settings is really needed is in the Save dialog, as in XnView Classic and other programs...
No problem. A window can be accessible from many locations. I don't see any problem with this...
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
CameronD
Posts: 311
Joined: Wed Aug 01, 2007 1:28 pm
Location: Australia

Re: 0.84: How to destroy your manually entered image's metad

Post by CameronD »

m.Th. wrote:The current status: DANGEROUS (I think)
I agree.

This situation actually surprises me - I always assumed those settings were for save-as and otherwise saving new copies of an image.
I would expect that simply saving an existing jpeg with modified content would use its current values such as compression quality and metadata.

What happens if you modify the metadata? does updating the file with new metadata also cause the metadata to be deleted if those options are set?

I can understand how the problem arises. I recently did a batch process of writing to new jpegs and wanted to remove some of the metadata, the ICC, wrote lower quality and resize. This requires modifying the format write options and if I did not remember to reset all the options to sensible values then I could have made a mess of a lot of image files.

It is also not good that I cannot access "format settings" from anywhere on the browser page, except the batch process dialog. I can do a right-click->convert into jpeg, but I cannot see nor change what the settings are.
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.84: How to destroy your manually entered image's metad

Post by xnview »

helmut wrote:
m.Th. wrote:... At least two buttons [Write Settings] [Read Settings] in Tools | Settings | Formats which will open the Viewers' dialogs discussed above.
Adding new tabs "Format" to Settings dialog should be feasable and no problem. If I understood Pierre right, placing buttons on standard dialogs is a problem in Qt.
So you would like that i add a new section 'Formats' in Settings (before 'Integration'), right?
Pierre.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.84: How to destroy your manually entered image's metad

Post by helmut »

xnview wrote:... So you would like that i add a new section 'Formats' in Settings (before 'Integration'), right?
I'd prefer if the category for format settings would be more at the top. In XnView Classic these settings are in General » Read/Write.
Post Reply