Keywords containing blanks

Started by chris_s, April 09, 2017, 01:59:27 PM

Previous topic - Next topic

chris_s

In a Windows system, I am doing a ShellExecute to start Exiftool and pass it parms. Some questions:


  • 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?
  • It happens that all the keywords in the RAF section are two or three words. I looked at previous posts and tried various things (putting quotes around the string) but I can't get Exiftool to accept two or three word keywords (for any section). Single word keywords work fine. What is the proper way to format a keyword that contains spaces as input to Exiftool through the Command Line? 

StarGeek

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 to get the exact tag names.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

chris_s

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.

StarGeek

What is the exact command you are trying to use?
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

chris_s

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. 


StarGeek

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?
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

chris_s

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.

Phil Harvey

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 for examples of how to create user-defined XMP tags.

- 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 ($).

chris_s

Thanks Phil. I'll give it a go.