regexghost-dotfiles

My dotfiles and scripts
git clone git@git.regexghost.com/regexghost-dotfiles.git
Log | Files | Refs | README

heic_to_jpg.sh (285B)


      1 #!/usr/bin/env bash
      2 
      3 oldIFS="$IFS"
      4 IFS=$'\n'
      5 
      6 files=( $(find . -maxdepth 1 -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"