heic-to-jpeg-converter

HEIC to JPEG Converter


License
MIT
Install
pip install heic-to-jpeg-converter==1.0.4

Documentation

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

  1. Install libheif via Homebrew

Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Libheif

brew install libheif
pip install heic-to-jpeg-converter

Usage

Convert everything in current folder and store in /converted

jpeg-converter convert

Find 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 -l

Testing Locally

  1. Create a virtualenv
python3 -m venv env
  1. Activate the virtual environment
source env/bin/activate
  1. Use script
development.sh