photoprep: preserve title in exif data

This commit is contained in:
tea 2024-10-14 13:07:23 +02:00
parent c763d1c699
commit 8720232166
No known key found for this signature in database

View File

@ -23,7 +23,7 @@ local size=${o_size[2]}
local format=${o_format[2]} local format=${o_format[2]}
mkdir -p photoprep mkdir -p photoprep
local jq_filter='.[0] | {"ImageDescription", "UserComment", "Comment", "Description", "Description-en-US", "Description-de-DE", "Subject"}' local jq_filter='.[0] | {"ImageDescription", "UserComment", "Comment", "Description", "Description-en-US", "Description-de-DE", "Subject", "Caption", "Title", "Object Name"}'
for file in ${@}; do for file in ${@}; do
newfile=photoprep/${file##*/} newfile=photoprep/${file##*/}
newfile=${newfile%.*}.${format} newfile=${newfile%.*}.${format}