Regex for extention and combine metta data

Started by Dev388, February 16, 2016, 01:28:24 PM

Previous topic - Next topic

Dev388

Hi, this is my first post,
I'm not familiar with CMD so I try and begin with GUI..
I try to write metta data

1. How to remove/replace the extention of image. I try to use filename for the keyword,

-EXIF:XPKeywords<$filename 
and the result is name of image.jpg. I just want the file name of image


2. It's posibe to combine my text and filename of image. for eg this is what i try

-EXIF: -sep ", " -XPKeyword="one, two, three" -XPKeywords<$filename" 
and the result is just filename with extention. I want one,teo,tree, name of image file

thanks and regard   ::)

Phil Harvey

The sample config file included with the full ExifTool distribution (config_files/example.config) contains a BaseName tag that will do what you want.  XPKeywords is not a List-type tag, so you write a simple string like this to have multiple keywords:

exiftool "-exif:xpkeywords<one, two, three, ${basename}" ...

You could also do it without the config file using the advanced formatting feature with a command something like this:

exiftool "-exif:xpkeywords<one, two, three, ${filename;s/\..*//}" ...

But you mention the GUI.  These are commands for the command line.  I don't know how to do this in the GUI.

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

Dev388

Thanks Phil.. it's still work with GUI

I have to learn so hard for it..

thanks and regard   :)