Exif being displayed instead of tag extracted

Started by Dave, August 11, 2011, 07:27:16 AM

Previous topic - Next topic

Dave

There's probably something simple I'm missing, but when I try to write the xmp-lr:HierarchicalSubject tag to some images like:
exiftool.pl  xmp-lr:HierarchicalSubject="Places|Asia|Japan (日本国; Nihon-koku)|Kansai region (関西地方; Kansai-chihō)|Osaka prefecture (大阪府; Ōsaka-fu)|Osaka city (大阪市; Ōsaka-shi)|Tennoji-ku (天王寺区; Tennōji-ku)" -ext .jpg -ext .tiff -ext .xmp -ext .psd -ext .psb -r ./
exiftool just prints the metadata for the files to the screen instead of modifying the files. I can't see any errors either.

Can anyone tell me what's wrong with my command? I am using the commandline in windows.

Thanks

Dave

Phil Harvey

Hi Dave,

You should have got an error like this:

File not found: xmp-lr:HierarchicalSubject=Places|Asia|Japan (日本国; Nihon-koku)|Kansai region (関西地方; Kansai-chihō)|Osaka prefecture (大阪府; Ōsaka-fu)|Osaka city (大阪市; Ōsaka-shi)|Tennoji-ku (天王寺区; Tennōji-ku)


You need a dash before all command line options, including tag names.  Any argument without a leading dash is interpreted as the name of a file to process.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Dave

Thanks Phil, I knew it would be something simple I'd missed. To get it to work properly I also had to put the value in a text file and use "xmp-lr:HierarchicalSubject<=file.txt" as perl / windows didn't like the foreign characters and replaced them with question marks otherwise.

Dave

Phil Harvey

Yes, I was going to remark on this but since you hadn't commented I assumed you were Mac or Linux (which properly support UTF-8 on the command line).  In Windows, it may be possible to get this working too if you want -- read FAQ #18 for more information.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).