diff --git a/image_batch/convert_png_to_jpg b/image_batch/convert_png_to_jpg new file mode 100755 index 0000000..242bb40 --- /dev/null +++ b/image_batch/convert_png_to_jpg @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e + +for source_file in *.png; do + common_name=$(basename $source_file '.png') + dest_file="${common_name}.jpg" + echo "converting $source_file to $dest_file" + convert $source_file $dest_file +done