This commit is contained in:
Danilo Reyes 2024-07-16 15:07:57 -06:00
parent d420f9ecd3
commit d4da28e4f9

View File

@ -78,7 +78,9 @@ handle_conversion_error() {
photo="$1" photo="$1"
new_photo="${photo%.*}.jpg" new_photo="${photo%.*}.jpg"
echo "Converting $photo to $new_photo using ImageMagick." echo "Converting $photo to $new_photo using ImageMagick."
convert "$photo" "$new_photo" && rm "$photo" mogrify -format jpg "$photo"
mv "${photo%.*}.jpg" "$new_photo"
rm "$photo"
} }
# Loop through each year directory # Loop through each year directory