diff --git a/.config/zsh/functions/photoprep b/.config/zsh/functions/photoprep index eb8718b..d5c9f90 100755 --- a/.config/zsh/functions/photoprep +++ b/.config/zsh/functions/photoprep @@ -31,7 +31,7 @@ for file in ${@}; do # write select EXIF data to temporary file 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 exiftool -json=${exif_json} -quiet -overwrite_original ${newfile} rm ${exif_json}