bin:raw2preview: Takeover EXIF tags from TIFFs too

This commit is contained in:
2023-12-07 02:54:30 +01:00
parent 69baa73ebe
commit 8a8726c3cb

View File

@@ -46,7 +46,13 @@ for file; do
elif [[ $mime = image/tiff ]]; then elif [[ $mime = image/tiff ]]; then
prev="$FOLDER/${file%.*}.JPG" prev="$FOLDER/${file%.*}.JPG"
[[ -e "$prev" ]] || convert "$file" "$prev" if [[ ! -e "$prev" ]]; then
convert "$file" "$prev"
exiftool -overwrite_original \
-tagsFromFile="$file" \
"${TAGS_TO_TRANSFER[@]}" \
"$prev"
fi
elif [[ "$(head -1 "$file")" = "#Geeqie collection" ]]; then elif [[ "$(head -1 "$file")" = "#Geeqie collection" ]]; then
while read line; do while read line; do