n $info;
}
# read image/movie metadata from a text file. The metadata is assumed
# to be in JSON or YAML format and to contain tags as produced by
# "exiftool -n -j", optionally (and preferably
} else {
my $type;
if (($info->get('MIMEType') // '') =~ m'application/(json|yaml)') {
# the MIMEType is detected based on the file's contents,
# regard