ExifTool Forum

ExifTool => Developers => Topic started by: chris_s on April 09, 2017, 01:59:27 PM

Title: Keywords containing blanks
Post by: chris_s on April 09, 2017, 01:59:27 PM
In a Windows system, I am doing a ShellExecute to start Exiftool and pass it parms. Some questions:

Title: Re: Keywords containing blanks
Post by: StarGeek on April 09, 2017, 02:31:50 PM
Quote from: chris_s on April 09, 2017, 01:59:27 PM
For Fuji RAF files, there is a 'RAF' section. When I extract the EXIF info for the file (-o), the RAF section isn't included. I know that it is there because I can see it using another tool. Can I extract this info by requesting specific keywords?

Try -RAF:all.

QuoteWhat is the proper way to format a keyword that contains spaces as input to Exiftool through the Command Line?

Do you mean a tag?  See FAQ #2 (http://www.exiftool.org/faq.html#Q2) to get the exact tag names.
Title: Re: Keywords containing blanks
Post by: chris_s on April 09, 2017, 04:10:30 PM
RAF:all didn't work.

Yes, I meant tags. I can see from the documentation that there are tag names for all the fields that don't have any spaces in them.  I used the one for the field that I need (-GeometricDistortionParams) but it comes back with the message "No writeable tags..." and doesn't create an XMP file. It makes sense that it wouldn't be writeable but I'm just trying to extract it.
Title: Re: Keywords containing blanks
Post by: StarGeek on April 09, 2017, 05:24:52 PM
What is the exact command you are trying to use?
Title: Re: Keywords containing blanks
Post by: chris_s on April 09, 2017, 10:31:54 PM
This is the actual parm:
$parm2 = "-v -k -GeometricDistortionParams" & " -o " & """" & $xmp_file2 & """" & " " & """" & $image & """"

The multi-double quotes become a single double-quote once it gets parsed. This works fine if I use something like -CreateDate instead of the -Geometric...

There are two additional sections that I can see using RawDigger that I can't see in the info extracted by Exiftool: the RAF section and the Composite section. 

Title: Re: Keywords containing blanks
Post by: StarGeek on April 10, 2017, 03:04:06 AM
You're trying to write non-xmp data to an xmp file.  That's why you get the "No writeable tags" error for GeometricDistortionParams but not CreateDate.  CreateDate can be an XMP tag.  GeometricDistortionParams isn't an XMP tag.

Maybe you actually want the -W and -X options?
Title: Re: Keywords containing blanks
Post by: chris_s on April 10, 2017, 10:36:56 AM
Maybe I'm beating a dead horse here. If I understand the documentation and your comments correctly, it seems that Exiftool won't write the tag that I'm looking for. I tried the -w tag. It creates a separate file for the requested tag but it's empty.
Title: Re: Keywords containing blanks
Post by: Phil Harvey on April 10, 2017, 11:51:34 AM
If you are trying to write XMP-format metadata, you can only write tags which are known to ExifTool.  If it isn't a standard tag, then you must create a user-defined tag to be able to write it.  This would apply if you are trying to write GeometricDistortionParams to an XMP file.  See the sample config file (https://exiftool.org/config.html) for examples of how to create user-defined XMP tags.

- Phil
Title: Re: Keywords containing blanks
Post by: chris_s on April 10, 2017, 12:22:27 PM
Thanks Phil. I'll give it a go.