Cannot copy to IPTC Location tags

Started by pybely, March 03, 2017, 05:46:44 PM

Previous topic - Next topic

pybely

Hi
With Windows Photo Gallery (WLPG) being discontinued, I am migrating to Adobe Lightroom (LR).  I successfully imported Face tags to LR (using exiftool), but I have a problem with IPTC Country/State/City tags.  Many of my pictures (scanned negatives or early digital) have no IPTC Location tags, but were "geotagged" using the Microsoft database (Bing) creating "Location Created City/State/Country tags".  I would like to copy these data into the IPTC City/State/Country tags

I first created the IPTC tags with no content (I also tried with an arbitrary name) then used:

                        exiftool "-iptc:City<-XMP-iptcExt:LocationCreatedCity" test.jpg

and get the following answer:

                    Warning: No writable tags set from test.jpg
                    0 image files updated
                    1 image files unchanged

Even though the IPTC tag has been created as I can check it in the metadata file).

Thanks in advance for any help...

StarGeek

Are you sure that LocationCreatedCity exists?  According to the output, it doesn't.  Did you check to see if xmp:city exists, as that is the more common tag?

Try using this command to see what city tags might be in the file.:
exiftool -G1 -a -s -*city*
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

pybely

Yes, both  IPTC:City  and XMP:LocationCreatedCity exist -- See attached output

But not XMP:City

Could it be a Microsoft idiosyncrasy ? 

StarGeek

Ah, I didn't look at your command carefully enough.  Common mistake 5a, leading dash before the source tag.

Try this:
exiftool "-iptc:City<XMP-iptcExt:LocationCreatedCity" test.jpg
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

pybely

Hi

Unfortunately this is not the answer (not being too knowledgeable on exiftool syntax, I had already tried it).  I still get the same error: No writable tags set.

I ran a series of test using various files (scanned negatives, legitimate digital, geotagged with GeoSetter, geotagged with Microsoft WLPG), and I am unable to make this "same file tag to tag copy" to work. And this is true, even though I can manually write any value I want in -City (eg. -city=Tambuctou), and it will be accepted.

Attached is one of my test file (image reduced to reduce file size), which has the original Created City by WLPG, and an IPTC:City tag that I created with the command: -City= . 

Thanks for your help !

StarGeek

Hmmm...  What version of exiftool? 

This test image you posted doesn't copy tags for you?  Because it worked fine for me (ver 10.45).
C:\>exiftool -city -LocationCreatedCity "X:\!temp\test6.jpg" -a -s -G1
[IPTC]          City                            :
[XMP-iptcExt]   LocationCreatedCity             : Como

C:\>exiftool "-iptc:city<xmp-iptcext:LocationCreatedCity" "X:\!temp\test6.jpg"
    1 image files updated

C:\>exiftool -city -LocationCreatedCity "X:\!temp\test6.jpg" -a -s -G1
[IPTC]          City                            : Como
[XMP-iptcExt]   LocationCreatedCity             : Como


How about copying to xmp:city?  Since you mentioned moving to LR, I'm pretty sure that LR will read xmp:city.

I'm not sure what else to say, I can't replicate the problem
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

pybely

Hi again

My apologies...

I had the current version of exiftool in my Geosetter folder, but a very very old version  in my default path. 

Using the latest version fixed everything!

Thanks so much for your help. 

StarGeek

Heh, I've done that.  It's frustrating until you finally figure it out.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

pybely

Hi again

Before signing off, I would like to tell you -- and I am sure I speak for many -- how much we appreciate your dedication, patience and graciousness in helping us, whether we are experts or neophytes.