Skip to content

Instantly share code, notes, and snippets.

@timrettop
Created January 6, 2024 21:20
Show Gist options
  • Save timrettop/8dc3350df8be00d38993606daa061d76 to your computer and use it in GitHub Desktop.
Save timrettop/8dc3350df8be00d38993606daa061d76 to your computer and use it in GitHub Desktop.
Run alpine docker and build imagemagick with heic support
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
@timrettop
Copy link
Author

need to expand upon building libheif / libde265

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment