ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: jonathan_seattle on November 04, 2011, 04:43:49 AM

Title: LastKeywordXMP and LastKeywordIPTC
Post by: jonathan_seattle on November 04, 2011, 04:43:49 AM
Any reports of being able to read but not write these fields? I can read with no problem, using -s, but writing I get 0 files changed 1 file unchanged. I can write to other fields without any trouble. If I'm the only one with this problem, I'll investigate further. Using 64-bit Windows 7

using:

exiftool.exe -LastKeywordXMP= myImage.jpg

or

exiftool.exe -LastKeywordXMP=JustOne myImage.jpg

Thanks.
Title: Re: LastKeywordXMP and LastKeywordIPTC
Post by: Phil Harvey on November 04, 2011, 07:21:13 AM
This should work.  What version of exiftool are you using?  (run "exiftool -ver")

> exiftool -ver
8.68

> exiftool -LastKeywordXMP=JustOne a.jpg
    1 image files updated

> exiftool -LastKeywordXMP a.jpg
Last Keyword XMP                : JustOne


- Phil
Title: Re: LastKeywordXMP and LastKeywordIPTC
Post by: jonathan_seattle on November 04, 2011, 01:26:55 PM
Thanks.  It must be that the image data was corrupted as exiftool 8.68 works fine with other files. I was testing metadata editors from other sources (PhotoInfoEX, Portfolio, etc.) on this one file.  Going back to the original jpg file, exiftool works fine.  Just an FYI, here is what I was seeing - it looks like it thinks it is updating the field but it doesn't:

exiftool -LastKeywordXMP ei0001436.jpg
Last Keyword XMP                : 20-24 years, african ethnicity, beauty, Brazil
, close up, color image, confidence, glamour, head and shoulders, latin american
and hispanic ethnicity, latina, Michael Poehlman, mixed race person, one person
, one young woman only, people, photography, portrait, Sao Paulo, serious, studi
o shot, thinking, vertical, white background, woman, young adult

exiftool -LastKeywordXMP=JustOne ei0001436.jpg
    1 image files updated

exiftool -LastKeywordXMP ei0001436.jpg
Last Keyword XMP                : 20-24 years, african ethnicity, beauty, Brazil
, close up, color image, confidence, glamour, head and shoulders, latin american
and hispanic ethnicity, latina, Michael Poehlman, mixed race person, one person
, one young woman only, people, photography, portrait, Sao Paulo, serious, studi
o shot, thinking, vertical, white background, woman, young adult

I could send you the file but it is 14MB.

Thanks a lot.
-Jonathan
Title: Re: LastKeywordXMP and LastKeywordIPTC
Post by: Phil Harvey on November 04, 2011, 01:33:27 PM
Hi Jonathan,

Try using the -a option when you extract the information.  Read FAQ number 3 (https://exiftool.org/faq.html#Q3) for help with this.

- Phil
Title: Re: LastKeywordXMP and LastKeywordIPTC
Post by: Phil Harvey on November 05, 2011, 07:05:48 AM
I was in a rush when I wrote my last response.  I was assuming that the information was hiding in some non-standard place and that ExifTool was writing only to the standard location.  Could you paste the output of "exiftool -v" run on the file so I can have some more details about where this information is hiding?  It would be good to know where this is. Thanks.

- Phil