HEIC TO JPG
Converts all pictures in a given folder from HEIC to JPG. Stores the new photos with the same name in /converted folder in the same directory unless target folder provided in flags.
Thanks to this link.
Installing prerequisites
- Install libheif via Homebrew
Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Libheif
brew install libheifpip install heic-to-jpeg-converterUsage
Convert everything in current folder and store in /converted
jpeg-converter convertFind all files in the Downloads directory and save the converted pictures in current directory
jpeg-converter convert -s ~/Downloads -t .Only list the files in the Downloads directory that will be converted
jpeg-converter convert -s ~/Downloads -lTesting Locally
- Create a virtualenv
python3 -m venv env- Activate the virtual environment
source env/bin/activate- Use script
development.sh