add digikam flag to ease tag post processing

This commit is contained in:
Guillaume Castagnino 2020-04-30 23:16:44 +02:00
parent 69d87e9dd8
commit bb9ad694db
1 changed files with 4 additions and 0 deletions

View File

@ -98,12 +98,14 @@ import_photo()
then
echo "'${image}' =! '${out}/${dir}/${file}' already exists, aborting"
else
# copy file
echo "'${image}' => '${out}/${dir}/${file}'…"
cp -n --preserve=timestamps --no-preserve=mode "${image}" "${out}/${dir}/${file}"
if [ ${DELETE} -eq 1 ]
then
rm -f "${image}"
fi
# handle sidecar files if exists
for side_ext in $SIDECAR
do
if [ -f "${image}.${side_ext}" ]
@ -116,6 +118,8 @@ import_photo()
fi
fi
done
# Add the needed XMP metadata for later Digikam processing (the yellow flag, alias XMP-digiKam:PickLabel=2)
exiftool -xmp:XMP-digiKam:PickLabel=2 -overwrite_original -P "${out}/${dir}/${file}.xmp"
fi
}