Just to make sure that i understood you correctly let me rephrase , please correct me if i am wrong.
- You want to export images with your keywords, Yes/No
- However you want that the parent keyword does not export. Yes/No
Upload a sample exported pic with this problem to Dropbox or similar and post the link here. Also, let us know which keyword(s) was mistakenly exported.
That is correct.
I created a hierarchical keyword structure with category (parent) keywords to help organise the keyword list in Word, for example
Then imported the keywords into Lightroom 5. The import appears to have worked correctly in that the parent keyword [Locality] appears in the keyword list (without the square brackets) with the checkbox "Include on export" unchecked.
However, if I attach the keyword "Namibia" to an image Lightroom 5 exports "Africa; Locality; Namibia" to the image whereas I want only "Africa; Namibia" to be exported to the metadata.
A sample pic uploaded to Dropbox would make it clearer what might be going on.
Last night I used Windows explorer to delet the unwonted keywords then re-imported the images into Lightroom. Now I cannot save metadata to the images. I get the following error message
Some save metadata operations were not performed.
Could not write metadata. Unknown file formats (1)
Allocnemis leucosticta_Franschoek, RSA_2016_00043.ipg
I have deleted all the images from Lightroom, removed the keywords, and re-imported but I still get the above error message.
Tomorrow I will delete the catalog and start over, see if that fixes the problem so that I can post an example image to Dropbox.
If you continue to get the error, upload one of the problem files to Dropbox and I'll take a look. It's possible that Windows Explorer made the metadata unusable to LR.
You are correct about Windows doing something. I deleted all the keywords using the Windows property editor so that I could start over, but when I imported the image the keywords were still there.
I have uploaded 3 image and a readme file to dropbox.
I see what's going on. First, some LR terminology: "export" means invoking the File > Export command to make copies of the selected pic outside of LR. It appears that you're not doing "export" but rather "saving metadata", invoking Metadata > Save Metadata To File to write the catalog metadata back to the cataloged photos (or you have the option enabled that does that automatically).
The keyword attribute Include On Export applies to exporting but not to saving metadata. In a typical LR workflow, when you want to provide copies of your photos to another person, organization, or service, you export them, and Include On Export has the desired effect on the exported copies.
If you really want the metadata in the cataloged photos to exclude a keyword, you have to go to each of that keyword's children and deselect their attribute Export Containing Keywords. That will cause the parent keyword to be excluded from the metadata saved to files. (Yes, this is inconsistent, but that's life with LR.) Unfortunately, there is no way to batch edit a set of keywords -- you have to change each one individually. So you might ask yourself if it really matters that your private copies of the photos contain the "category" keywords in their metadata.
Regarding the file "Allocnemis leucosticta_Franschoek, RSA_2016_00043.jpg", from which you removed keywords using Windows Explorer: It appears that Explorer did indeed corrupt the file's metadata. I used the free Exiftool to examine its metadata, and Exiftool reports:
[ExifTool] Warning: [minor] Adjusted MakerNotes base by 4098 [ExifTool] Warning: [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto [ExifTool] Warning: Bad IPTC data tag (marker 0x0)
Which version of Windows?
You could attempt to fix the corrupted file's metadata by doing these two commands:
exiftool -a -G "Allocnemis leucosticta_Franschoek, RSA_2016_00043.jpg" exiftool -iptc:all= "Allocnemis leucosticta_Franschoek, RSA_2016_00043.jpg"
That worked for this file, and it will probably work for any other files that might have been corrupted. But if you have an uncorrupted version in a backup, it would be safer to restore it.
I thought that "export" was exporting the metadata from LR to the images on disc, not exporting the actual images.
Thanks for the help with the corrupted files.
I edited those files using Windows 7. I have recently acquired a new laptop with Windows 10 and will check whether that version also corrupts the image files.
By the way, can I install LR 5.7 on my new laptop as my second machine under my current LR 5.0 license? Or would I have to install LR 5.0? I cannot use any of the cloud-based versions because I work at sea and don't have internet access.
You can have two computers running LR 5, and they don't have to the same minor version.
Thanks for pointing me to the Exiftool - very powerful and useful. It just took me a bit of time to remember how to work in the command prompt window.
Thanks again for all your help