XnView doesn't refresh XMP on files edited with Gimp
Moderators: helmut, XnTriq, xnview
XnView doesn't refresh XMP on files edited with Gimp
I discovered the following:
The XMP-Metadata of files that I have edited with Gimp and where Gimp has rewitten XMP is not refreshed by XnView when I e.g. enter a new IPTC-Description (with XMP witing selected!).
Here is one file where you can reproduce the behaviour:
http://s1.directupload.net/file/u/44197 ... kj_jpg.htm
Simply open it with XnView, enter a new IPTC-Description and write it. You will see that the IPTC-data is properly saved, but the XMP is untouched. ExifTool had the same Problem, as you can see in the following thread:
http://u88.n24.queensu.ca/exiftool/foru ... topic=5292
Best regards,
Christoph
The XMP-Metadata of files that I have edited with Gimp and where Gimp has rewitten XMP is not refreshed by XnView when I e.g. enter a new IPTC-Description (with XMP witing selected!).
Here is one file where you can reproduce the behaviour:
http://s1.directupload.net/file/u/44197 ... kj_jpg.htm
Simply open it with XnView, enter a new IPTC-Description and write it. You will see that the IPTC-data is properly saved, but the XMP is untouched. ExifTool had the same Problem, as you can see in the following thread:
http://u88.n24.queensu.ca/exiftool/foru ... topic=5292
Best regards,
Christoph
Re: XnView doesn't refresh XMP on files edited with Gimp
Hello? Would be nice to get an answer
! I think I have found the reason for the error: XnView uses ExifTool, and if ExifTool discovers a minor error it doesn't write metadata. XnView should use the option -m to ignore minor errors. At the current state it doesn't even show that there was an error, so it's possible that 3 out of hundreds of images have e.g. properly written IPTC but no xmp data. XnView should be able to show if errors occur and give the option to ignore minor exiftool-errors or ignore them generally by default. If it doesn't show errors you never can be sure that metadata ist written properly.
Best regards,
Christoph

Best regards,
Christoph
Re: XnView doesn't refresh XMP on files edited with Gimp
Hello again, I would be glad to get an answer; it doesn't have to be long, just something like "noted".
Best regards,
Christoph
Best regards,
Christoph
Re: XnView doesn't refresh XMP on files edited with Gimp
Thank you Pierre,
best regards!
best regards!
Re: XnView doesn't refresh XMP on files edited with Gimp
Okay, now Its getting a little more complicated and I hope that my english is good enough to explain how my metadata problems envolved:
Let's give you one first example:
- Let's say I have two jpeg images just with the normal exif data from the camera and one that was sharpened with gimp and resaved. On resave Gimp writes XMP by default.
- After that both images got IPTC-Captions with XnView with XMP-riting/updating disabled.
- I discovered that the IPTC-Caption of the image that wasn't edited with Gimp was not shown in http://www.itagsoftware.com/
- The IPTC-Caption of the image that was resaved with Gimp was shown properly
- I read in another forum that some somftware has problems to read IPTC-Data from images that have not been recompressed, so I thougt it was a problem with iTag. Enabling the Windows Imaging Codec inside Itag instead Adobe XMP Toolkit showed the captions of both images
- My goal was to copy the IPTC-Captions of some thousands of images to XMP respectively create XMP, because in the past I only saved IPTC. I decided to let ExifTool do the job and discovered that It didn't copy the IPTC-Caption to XMP on images that had been edited and resaved with gimp.
- Then I tried writing IPTC-Caption and XMP-Description with XnView, which showed the same behaviour on Images that were edited with gimp: IPTC was written, XMP not, but without an error message, so you never can be sure if the metadata is written properly or not.
I don't know if it's a problem with Gimp or XnView. Here's what I posted on the exiftool-Forum: http://u88.n24.queensu.ca/exiftool/foru ... 292.0.html
I opened a bug report for Gimp, too:
https://bugzilla.gnome.org/show_bug.cgi?id=709219
Would be nice to get an idea, what happened.
Best regards,
Christoph
Let's give you one first example:
- Let's say I have two jpeg images just with the normal exif data from the camera and one that was sharpened with gimp and resaved. On resave Gimp writes XMP by default.
- After that both images got IPTC-Captions with XnView with XMP-riting/updating disabled.
- I discovered that the IPTC-Caption of the image that wasn't edited with Gimp was not shown in http://www.itagsoftware.com/
- The IPTC-Caption of the image that was resaved with Gimp was shown properly
- I read in another forum that some somftware has problems to read IPTC-Data from images that have not been recompressed, so I thougt it was a problem with iTag. Enabling the Windows Imaging Codec inside Itag instead Adobe XMP Toolkit showed the captions of both images
- My goal was to copy the IPTC-Captions of some thousands of images to XMP respectively create XMP, because in the past I only saved IPTC. I decided to let ExifTool do the job and discovered that It didn't copy the IPTC-Caption to XMP on images that had been edited and resaved with gimp.
- Then I tried writing IPTC-Caption and XMP-Description with XnView, which showed the same behaviour on Images that were edited with gimp: IPTC was written, XMP not, but without an error message, so you never can be sure if the metadata is written properly or not.
I don't know if it's a problem with Gimp or XnView. Here's what I posted on the exiftool-Forum: http://u88.n24.queensu.ca/exiftool/foru ... 292.0.html
I opened a bug report for Gimp, too:
https://bugzilla.gnome.org/show_bug.cgi?id=709219
Would be nice to get an idea, what happened.
Best regards,
Christoph
Re: XnView doesn't refresh XMP on files edited with Gimp
Hello Pierre, is there something new? I'm totally stuck on working an dozens of images. Would be great if someone could help me
.
Meanwhile I did some further testing: If I select two images, one edited with gimp, one not and write IPTC Data to both of them, the XMP data is synchronized with IPTC, but the XMP Gimp wrote is gone (which doesn't matte much). If I only select the imgage that was edited with gimp and write an IPTC-Caption, the XMP Gimp wrote stays untouched and there is no XMP-Description written.
Best regards,
Christoph

Meanwhile I did some further testing: If I select two images, one edited with gimp, one not and write IPTC Data to both of them, the XMP data is synchronized with IPTC, but the XMP Gimp wrote is gone (which doesn't matte much). If I only select the imgage that was edited with gimp and write an IPTC-Caption, the XMP Gimp wrote stays untouched and there is no XMP-Description written.
Best regards,
Christoph
Re: XnView doesn't refresh XMP on files edited with Gimp
Ok, the problem is in the XMP Addon (i don't use ExifTools but XMP SDK from Adobe). The XMP data has duplicate fields. I don't see a way to ignore errors 

Pierre.
Re: XnView doesn't refresh XMP on files edited with Gimp
Thanky for your reply! I reported the problem to the Gimp developers, hope they'll fix it soon. I have seen than all software that uses the XMP-Toolkit has the same problems.
Best regards,
Christoph
Best regards,
Christoph
Re: XnView doesn't refresh XMP on files edited with Gimp
One more question: Do you think it's an "error" of the XMP Toolkit? ExifTools shows that there are duplicate XMP-Fields, too, but it's possible to write XMP. Maybe it should be reported to Adobe. regarding XnVie, it would be good if XnView would show that it was not possible to write to the files instead of giving no information. So you never can be sure if the metadata iw written properly.
Best regards,
Christoph
Best regards,
Christoph
Re: XnView doesn't refresh XMP on files edited with Gimp
I think that XMP toolkit is restrictive, and you can't have duplicate fields
Pierre.
Re: XnView doesn't refresh XMP on files edited with Gimp
But then XnView should show an error message if writing isn't possible instead of just ignoring the files.
Best regards,
Christoph
Best regards,
Christoph
Re: XnView doesn't refresh XMP on files edited with Gimp
Hello,
Pierre, will the next version of XnView show an error message if the XMP-Toolkit is not able to write metadata? Here is one example image where XnView can't write XMP-Data because of the metadata error of Gimp that i described:
http://s14.directupload.net/file/d/3444 ... qg_jpg.htm
Try yourself and you'll see that XnView shows no error, but XMP-Data is not saved. It had a lot of work to identify all images where this happened, so it would be good if XnView wouls show an error message in case something went wrong.
Best regards,
Christoph
Pierre, will the next version of XnView show an error message if the XMP-Toolkit is not able to write metadata? Here is one example image where XnView can't write XMP-Data because of the metadata error of Gimp that i described:
http://s14.directupload.net/file/d/3444 ... qg_jpg.htm
Try yourself and you'll see that XnView shows no error, but XMP-Data is not saved. It had a lot of work to identify all images where this happened, so it would be good if XnView wouls show an error message in case something went wrong.
Best regards,
Christoph
Last edited by mülli on Mon Nov 18, 2013 3:34 pm, edited 1 time in total.
Re: XnView doesn't refresh XMP on files edited with Gimp
Do you use 'Edit IPTC' to edit XMP?
Pierre.
Re: XnView doesn't refresh XMP on files edited with Gimp
Yes, I write IPTC-Captions and have checked the XMP-Box, too.