The images are named ‘<year> <idx> – <description>.jpg’. But there is no Title set in the metadata yet. IrfanView supports EXIF and IPTC, but not XMP for now. So let’s use the EXIF Title called XPTitle.
1. Write the XPTitle (with ExifTool)
exiftool.exe '-exif:XPTitle<${basename;s/^.*( - )//}' -overwrite_original .
Explanation of the command
- 'basename' ... The name of the image without the extension (e.g. '.jpg').
- 's/^.*( - )//' ... Perl regex to remove a specific pattern from the basename.
Hints
- Use single quotes (') around arguments containing a dollar sign ($).
- If you use '-title' instead of '-exif:XPTitle' it writes '-xmp-dc:Title'.
- If you add the Title via Windows properties it writes it at multiple tags.1
1 EXIF (XPTitle, ImageDescription), IPTC (Caption-Abstract) and XMP (Title, Description)
Explanation of the regex
- 's///' ... Substitution
- '^' ... Start of the line
- '.' ... Any character
- '*' ... 0 until n times
- '( - )' ... Pattern: ' - '
2. Show the XPTitle (with IrfanView)
1. Open the Slideshow window ('File' --> 'Slideshow...')
2. Add the images (Browse, then 'Add' / 'Add all')
3. Modify the shown text (Mark 'Show Text:' and enter "$E40091")
4. Start the Slideshow ('Play Slideshow')