diff --git a/iphone-sony-photo-format.sh b/iphone-sony-photo-format.sh index 4308f5d..fd9741e 100755 --- a/iphone-sony-photo-format.sh +++ b/iphone-sony-photo-format.sh @@ -14,7 +14,7 @@ for file in *.{HEIC,heic,HEIF,heif,PNG,png,JPG,jpg}; do continue fi - # 跳过自己改的图片 + # 跳过自己改的图片 if [[ $filename == *"MODIFIED"* ]] || [[ $filename == *"MERGED"* ]]; then echo "文件名包含 MODIFIED 或 MERGED" continue @@ -49,7 +49,7 @@ for file in *.{HEIC,heic,HEIF,heif,PNG,png,JPG,jpg}; do fi # 使用 ImageMagick 处理图片 - magick "$file" -gravity center -resize "$new_size^" -extent "$new_size" -quality 80 output/$new_filename + magick "$file" -gravity center -resize "$new_size^" -extent "$new_size" -quality 80 "output/$new_filename" # fi # 使用 exiftool 抹掉图片的 gps 信息,并设置作者名称为 Paul