Small docker image with ImageMagick and heic2jpg script based on dpokidov/imagemagick docker image.
Simplest a convenient way how to convert your HEIC images to JPG.
For heic2jpg to convert all *.heic files to *.jpg run:
docker run --rm -v "${PWD}:/workdir" dhlavaty/heic2jpgYou can use parameter --ignore-existing to ignore already converted files:
docker run --rm -v "${PWD}:/workdir" dhlavaty/heic2jpg -- --ignore-existingUse heic2jpghere alias (in your zsh.rc for example):
alias heic2jpghere='docker run --rm -v "${PWD}:/workdir" dhlavaty/heic2jpg --'And now to convert all HEIC files in your current directory:
$ cd /Users/my/iphone/images
$ heic2jpghere
# doneor
$ cd /Users/my/iphone/images
$ heic2jpghere --ignore-existing
# doneBuild multi-arch image:
$ docker buildx create --name mybuilder
$ docker buildx use mybuilder
# (Optional) check your builder
$ docker buildx inspect
$ docker buildx build --platform linux/amd64,linux/arm64 --tag dhlavaty/heic2jpg . --push
# (Optional) Inspect your image
$ docker buildx imagetools inspect dhlavaty/heic2jpgLint dockerfile:
$ docker run --rm -i hadolint/hadolint < DockerfileThis project is licensed under MIT - http://opensource.org/licenses/MIT