Add imagemagick patch

This commit is contained in:
KMY 2023-09-18 09:10:52 +09:00
parent 60e3611c73
commit c618f84387

View file

@ -0,0 +1,22 @@
apt remove imagemagick
git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick
cd ImageMagick
git checkout $(git tag -l | grep -E '^7' | sort -V | tail -n 1)
apt update
apt install -y \
libjpeg-dev libpng-dev libpng16-16 libltdl-dev libheif-dev libraw-dev libtiff-dev libopenjp2-tools \
libopenjp2-7-dev libjpeg-turbo-progs libfreetype6-dev libheif-dev libfreetype6-dev libopenexr-dev \
libwebp-dev libgif-dev
./configure --with-modules --enable-file-type --with-quantum-depth=32 --with-jpeg=yes --with-png=yes \
--with-gif=yes --with-webp=yes --with-heic=yes --with-raw=yes --with-tiff=yes --with-openjp2 \
--with-freetype=yes --with-webp=yes --with-openexr=yes --with-gslib=yes --with-gif=yes --with-perl=yes \
--with-jxl=yes
make
make install
ldconfig /usr/local/lib