Rename EXIF Artist field

Started by Archive, May 12, 2010, 08:54:18 AM

Previous topic - Next topic

Archive

[Originally posted by nohart on 2008-04-03 08:34:56-07]

I was able to import the file name minus the extension into the EXIF Artist field it is:

0201_ZZ_Top

I would like to rename this field so it reads:

ZZ Top

Can anyone help me with the commands?

Archive

[Originally posted by exiftool on 2008-04-03 11:20:44-07]

This may be done by creating a user-defined tag (let's call it MyName),
and copying it to the Artist tag with "-artist<myname".  Here is a
.ExifTool_config file that you can use to create the MyName tag:

Code:
%Image::ExifTool::UserDefined = (
    'Image::ExifTool::Composite' => {
        MyName => {
            Require => 'FileName',
            ValueConv => '$_=$val; s/\..*?$//; tr/_/ /; s/^\d+\s*//; $_',
        },
    },
);

This may look cryptic, but the three Perl expressions on the ValueConv
line do the following:

1) s/\..*?$// -- removes the file extension

2) tr/_/ / -- translates underlines to spaces

3) s/^\d+\s*// -- removes any leading digits followed by optional whitespace

Read the https://exiftool.org/config.html" target="_blank">config
file documentation for details on how to install the config file.

- Phil

Archive

[Originally posted by nohart on 2008-04-03 18:31:46-07]

Thank you for trying to help me. But to be honest I cant even figure out how to run the application needless to say even implement your suggestion. I understand html and java script but I'm sorry this application is over my head. I tried to run it and I even found a GUI for it but I cant figure out how to implement your suggestion. I don't want to create a new tag or field I just want to change a field named Artist that reads: 0201_ZZ_Top so it reads: ZZ Top. I have 653 files that I need to try and batch change. I just cant figure out how to do it. I have spent 2 days now on Google reading and trying other programs and nothing works so I guess I just have to lump it or manually change all the files. Thanks anyway

Archive

[Originally posted by exiftool on 2008-04-04 14:36:09-07]

It sounds like you have given up, but for the record, here
are step-by-step instructions to get this working:

1) Download and extract the windows executable version of exiftool.

2) Download and extract ".ExifTool_config" from
https://exiftool.org/ExifTool_config-nohart.zip" target="_blank">this
zip file, and place in the same directory as "exiftool(-k).exe" from step 1.
(Don't worry if you don't see the ".exe" on the file name.)

3) Right click on "exiftool(-k).exe" and select "Create Shortcut".

4) Right click on the shortcut that was created, and select "Properties".
In the Properties window, edit the "Target" line and insert a space at the
end of the line, followed by this text exactly as shown, including quotes:

Code:
"-artist<myname" -overwrite_original -r -P

5) Drag and drop your image files and/or folders onto the shortcut
you created to set the artist tag.  Make sure you have backups of
these files since this will overwrite the original files.  If you don't
have backups, remove the -overwrite_original from the
Target settings, and exiftool will preserve the original files for you.

- Phil

Archive

[Originally posted by nohart on 2008-04-04 18:22:35-07]

WOW! That was awesome! Thank you so much! Maybe I can get a handle on this powerful application after all! I tried to use this ap with the ExifTool GUI for Windows found here:

http://freeweb.siol.net/hrastni3/foto/exif/exiftoolgui.htm" target="_blank">http://freeweb.siol.net/hrastni3/foto/exif/exiftoolgui.htm

But of course it is limited in its access to all the functions available in ExifTool because it is a GUI. I had not given up. It is just frustrating to try for so many days and not accomplish anything :-) Thanks again! It is very nice of you to take time to help me :-)