Rename a file with the tag XMP-dc:Title-fr

Started by polymorphisme, April 16, 2020, 07:23:39 PM

Previous topic - Next topic

polymorphisme

Hi,

I use the comme line bellow for adding the XMP-dc:Title-fr :

$ exiftool -XMP-dc:Title-fr='Le Jardin des délices' img.jpg

And I want rename my file as : imgLeJardinDesDelices.jpg

A part of my configuration file :

%Image::ExifTool::UserDefined = (
  # Composite tags are added to the Composite table:
  'Image::ExifTool::Composite' => {
    BaseName => {
      Require => {
        0 => 'title',
      },
      # remove the extension from FileName
      ValueConv => '$prt[0] =~ tr/éè/ee/; $prt[0]',
    },
  },
);


I think that the line  0 => 'title' doesn't find the good tag :

$ exiftool -d %f-${BaseName}.%e "-testname<CreateDate" img.jpg
'img.jpg' --> 'img-. 2'
    0 image files updated
    1 image files unchanged


Thanks for your help.  :)




Phil Harvey

The tag names in the config file are case sensitive, so try "Title" instead of "title".

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