Batch copy individual Filename to IPTC Title field

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, helmut, xnview

Post Reply
BrianScott
Posts: 1
Joined: Wed Sep 05, 2018 7:15 pm

Batch copy individual Filename to IPTC Title field

Post by BrianScott »

I have been trying to add the Filename (Without ext) to the ITPC Title field. I can do it individually to each file but with so many files it is not practicle.
Is there a way to batch edit the images each with there own filename been copied to the Title Field.

Any help much appreciated.
Brian
User avatar
michel038
XnThusiast
Posts: 1273
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: Batch copy individual Filename to IPTC Title field

Post by michel038 »

I don't know if it's possible with xnview.
I presume you want to process only jpg files
I think "IPTC:Tiltle" doesn't exist. I only used IPTC:Headline or IPTC:Caption-Abstract
I didn't find in exiftool documentation if it's possible to select filename without ext

With Xnviewmp, you can use "open with" ( Tools, open with, configure programs , add ... )

Create a new entry with exiftool.exe ( located in ...Xnviewmp\AddOn folder )
Then add parameters : -IPTC:headline<Filename

you can also add options :
-overwrite_original (to delete duplicate _original files)
-r (recursive, all files in subfolders will be updated warning !)
-k (holds exiftool window opened, so you can read error messages)

Parameters become : -IPTC:Headline<Filename -overwrite_original -r -k

Then select some pictures, right click "open with" ... "exiftool ..."
You can also select whole folders on the right hand side of the browser.

Image
In this one, "IPTC:Caption-Abstract" was used
Last edited by michel038 on Fri Sep 07, 2018 1:57 pm, edited 2 times in total.
User avatar
michel038
XnThusiast
Posts: 1273
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: Batch copy individual Filename to IPTC Title field

Post by michel038 »

I found exiftool doc :

use this parameter :
-IPTC:Headline<${FileName;s/\.[^.]*$//} -overwrite_original -k -r
Post Reply