I am working on creating contact sheets with Image Magick's montage command. I would like to include particular meta data as the -label
for the contact sheet images. I am pulling the data using exiftool:
$creator = C:\exiftool.exe "-Creator" $image
and creating the montage like so:
montage -verbose -label %t_$creator -pointsize 20 -background '#FFFFFF' -tile '5x40' -fill 'black' -define jpeg:size=600x780 -geometry 600x780+40+150 -quality 90 -auto-orient $dailyImages.FullName E:\Contact_Sheet.jpg
However, I run into an issue of the -label
containing the creator for ALL the files in the directory $dailyImages
instead of the creator for each respective file.
Is anyone able to use the exiftool command to pull a single file's 'creator' and pipe it into the montage command so the respective image on the contact sheet as $filename_$creator
. (In case you are unfamiliar, the %t
in -label %t_$creator
is built in to Image Magick to provide the filename as the -label
)