photoprep: don't scale up

This commit is contained in:
tea 2024-08-29 15:16:48 +02:00
parent 60b37d42ce
commit 8c167bedeb
No known key found for this signature in database

View File

@ -31,7 +31,7 @@ for file in ${@}; do
# write select EXIF data to temporary file # write select EXIF data to temporary file
exiftool -json ${file} | jq ${jq_filter} | grep -v null > ${exif_json} exiftool -json ${file} | jq ${jq_filter} | grep -v null > ${exif_json}
magick -quality ${quality} ${file} -auto-orient -strip -resize ${size} ${newfile} magick -quality ${quality} ${file} -auto-orient -strip -resize ${size}\> ${newfile}
# add EXIF data to new (scrubbed) file # add EXIF data to new (scrubbed) file
exiftool -json=${exif_json} -quiet -overwrite_original ${newfile} exiftool -json=${exif_json} -quiet -overwrite_original ${newfile}
rm ${exif_json} rm ${exif_json}