Created
January 6, 2024 21:20
-
-
Save timrettop/8dc3350df8be00d38993606daa061d76 to your computer and use it in GitHub Desktop.
Run alpine docker and build imagemagick with heic support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -it --mount type=bind,src="$(pwd)",target=/src alpine:latest | |
apk add --update alpine-sdk libheif-dev libde265-dev | |
git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick | |
cd ImageMagick/ | |
#Optional change to a specific version | |
git checkout tags/7.1.1-22 | |
./configure --with-heic=yes --with-jpeg=yes | |
make -j4 | |
make install | |
ldconfig | |
cd ../src | |
convert IMG_5769.HEIC -quality 90% IMG_5769_test3.JPG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
need to expand upon building libheif / libde265