add digikam flag to ease tag post processing
This commit is contained in:
parent
69d87e9dd8
commit
bb9ad694db
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue