dotfiles

regexghost dotfiles and scripts
git clone https://git.regexghost.com/dotfiles.git
Log | Files | Refs | README

heic_to_jpg.sh (273B)


      1 #!/usr/bin/env bash
      2 
      3 oldIFS="$IFS"
      4 IFS=$'\n'
      5 
      6 files=( $(find . -type f | grep -i heic) )
      7 
      8 for file in "${files[@]}"; do
      9 	echo "Converting ${file} to jpg"
     10 	file_name_without_extension="${file%.*}"
     11 	magick "${file}" "${file_name_without_extension}.jpg"
     12 done
     13 
     14 echo "All done"