When you need to convert .heic
file (HEIF file format), this docker image will be useful.
docker build . -t imagemagick_heic
docker run -it --name imagemagick_heic --rm imagemagick_heic /bin/bash
Then, you can check ImageMagick version
convert -version
- Send HEIF(
.heic
) file to the container# Command from outside of the container docker cp /path/to/file.heic imagemagick_heic:/home
- Convert HEIF(
.heic
) file to JPEG(.jpg
)# Command from the container mogrify -format jpg *.heic
- Send JPEG(
.jpg
) file to outside of the container# Command from outside of the container docker cp imagemagick_heic:/home/file.jpg .