Skip to content

Instantly share code, notes, and snippets.

@timrettop
timrettop / gist:86cf674dc4743dca99ee7e9a30dc6f6b
Created January 7, 2024 06:15
Slackware builds libde265/libheif and dependencies for imagemagick heic/heif support
Slackware package install scripts
mkdir /src && cd /src
#Prepare libheif
wget https://slackbuilds.org/slackbuilds/15.0/libraries/libheif.tar.gz
tar xzvf libheif.tar.gz
cd libheif
wget https://github.com/strukturag/libheif/releases/download/v1.17.6/libheif-1.17.6.tar.gz
chmod +x libheif.SlackBuild
@timrettop
timrettop / gist:8dc3350df8be00d38993606daa061d76
Created January 6, 2024 21:20
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