CLI tool for converting HEIC
images to jpg
.
Essentially, this is just a thin convenience wrapper around imagemagick's magick
cli.
Motivation: When transfering images from an iPhone to a Mac via airdrop, they are being transfered as HEIC
. Oftentime though, another format (such as jpg
) is required to further make use of those images.
👉
👉
pip install heic-to-jpg
(pip3 install heic-to-jpg
for some; an up-to-date-ish python3 is recommended.)
Install heic-to-jpg<0.2.0
to use imagemagick's convert
cli.
Install heic-to-jpg>=0.2.0
to use imagemagick's magick
cli.
heic-to-jpg -s ~/path/to/source [--keep] [--debug None|Trace|All]
or
heic2jpg -s ~/path/to/source [--keep] [--debug None|Trace|All]
~/path/to/source
can both be a directory or a single .HEIC
file. Without the --keep
flag, the original file is deleted after conversion.
pip install -e .
to install the package in editable modepip install -r requirements-dev.txt
to install development dependenciespytest
to run tests
rm -rf dist/
to clean uppython -m build
to build the packagetwine upload dist/*
to upload to pypi